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, preload
Methods inherited from class DelegatingAttributeLoader
delegate, getAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrail, toString
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface AttributeLoader
getAttributeDependencies, getAttributeSpec, getContextDependencies, getGlobalTrail
Methods inherited from interface MultiRowAttributeLoader
getCachingStrategy
Methods 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: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 returnnull
. (Note, however, that if multiple scanning loaders work on the same attribute, it could be tricky and lead to unexpected results.)- Specified by:
loadValue
in 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
-