Class DelegatingScanningAttributeLoader<T>
Object
DelegatingAttributeLoader<T,L>
DelegatingRowAttributeLoader<T,ScanningAttributeLoader<T>>
DelegatingScanningAttributeLoader<T>
- All Implemented Interfaces:
AttributeLoader<T>,MultiRowAttributeLoader<T>,RowAttributeLoader<T>,ScanningAttributeLoader<T>
public class DelegatingScanningAttributeLoader<T>
extends DelegatingRowAttributeLoader<T,ScanningAttributeLoader<T>>
implements ScanningAttributeLoader<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadValue(AttributeValue<T> precedingValue, ScanningAttributeContext context) Performs scanning loading.Methods inherited from class DelegatingRowAttributeLoader
isWholeForestDependent, preloadMethods inherited from class DelegatingAttributeLoader
delegate, getAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrail, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AttributeLoader
getAttributeDependencies, getAttributeSpec, getContextDependencies, getGlobalTrailMethods inherited from interface MultiRowAttributeLoader
getCachingStrategyMethods inherited from interface RowAttributeLoader
isWholeForestDependent, preload
-
Constructor Details
-
DelegatingScanningAttributeLoader
-
-
Method Details
-
loadValue
@Nullable public AttributeValue<T> loadValue(@NotNull AttributeValue<T> precedingValue, @NotNull ScanningAttributeContext context) Description copied from interface:ScanningAttributeLoaderPerforms 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 returnnull. (Note, however, that if multiple scanning loaders work on the same attribute, it could be tricky and lead to unexpected results.)- Specified by:
loadValuein interfaceScanningAttributeLoader<T>- Parameters:
precedingValue- the value of this attribute for the immediately preceding row, orAttributeValue.undefined()for the very first rowcontext- loading context- Returns:
- the calculated value
-