Class DelegatingAggregateAttributeLoader<T>
Object
DelegatingAttributeLoader<T,L>
DelegatingRowAttributeLoader<T,AggregateAttributeLoader<T>>
DelegatingAggregateAttributeLoader<T>
- All Implemented Interfaces:
AggregateAttributeLoader<T>,AttributeLoader<T>,MultiRowAttributeLoader<T>,RowAttributeLoader<T>
public class DelegatingAggregateAttributeLoader<T>
extends DelegatingRowAttributeLoader<T,AggregateAttributeLoader<T>>
implements AggregateAttributeLoader<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadValue(List<AttributeValue<T>> childrenValues, AggregateAttributeContext context) Performs aggregate 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
-
DelegatingAggregateAttributeLoader
-
-
Method Details
-
loadValue
@Nullable public AttributeValue<T> loadValue(@NotNull List<AttributeValue<T>> childrenValues, @NotNull AggregateAttributeContext context) Description copied from interface:AggregateAttributeLoaderPerforms aggregate loading.
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 aggregate loaders work on the same attribute, it could be tricky and lead to unexpected results.)Note: children values may contain loop markers
- Specified by:
loadValuein interfaceAggregateAttributeLoader<T>- Parameters:
childrenValues- the values of this attribute for all children rows, in the same order as the children rowscontext- loading context- Returns:
- the calculated value
-