public class DelegatingScanningAttributeLoader<T> extends DelegatingRowAttributeLoader<T,ScanningAttributeLoader<T>> implements ScanningAttributeLoader<T>
Constructor and Description |
---|
DelegatingScanningAttributeLoader(ScanningAttributeLoader<T> loader) |
Modifier and Type | Method and Description |
---|---|
AttributeValue<T> |
loadValue(AttributeValue<T> precedingValue,
ScanningAttributeContext context)
Performs scanning loading.
|
isWholeForestDependent, preload
delegate, getAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrail, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCachingStrategy
isWholeForestDependent, preload
getAttributeDependencies, getAttributeSpec, getContextDependencies, getGlobalTrail
public DelegatingScanningAttributeLoader(@NotNull ScanningAttributeLoader<T> loader)
@Nullable public AttributeValue<T> loadValue(@NotNull AttributeValue<T> precedingValue, @NotNull ScanningAttributeContext context)
ScanningAttributeLoader
Performs scanning loading. Must be a pure function - see ScanningAttributeLoader
.
If the value is missing or empty, the loader should return AttributeValue.undefined()
. If for some reason this loader
is not applicable for the given row, it should return null
. (Note, however, that if multiple scanning loaders work on the same
attribute, it could be tricky and lead to unexpected results.)
loadValue
in interface ScanningAttributeLoader<T>
precedingValue
- the value of this attribute for the immediately preceding row, or AttributeValue.undefined()
for the very first rowcontext
- loading contextCopyright © 2024 Tempo Software. All Rights Reserved.