public class DelegatingAggregateAttributeLoader<T> extends DelegatingRowAttributeLoader<T,AggregateAttributeLoader<T>> implements AggregateAttributeLoader<T>
| Constructor and Description |
|---|
DelegatingAggregateAttributeLoader(AggregateAttributeLoader<T> loader) |
| Modifier and Type | Method and Description |
|---|---|
AttributeValue<T> |
loadValue(List<AttributeValue<T>> childrenValues,
AggregateAttributeContext context)
Performs aggregate loading.
|
isWholeForestDependent, preloaddelegate, getAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrail, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCachingStrategyisWholeForestDependent, preloadgetAttributeDependencies, getAttributeSpec, getContextDependencies, getGlobalTrailpublic DelegatingAggregateAttributeLoader(@NotNull
AggregateAttributeLoader<T> loader)
@Nullable public AttributeValue<T> loadValue(@NotNull List<AttributeValue<T>> childrenValues, @NotNull AggregateAttributeContext context)
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 return null. (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
loadValue in interface AggregateAttributeLoader<T>childrenValues - the values of this attribute for all children rows, in the same order as the children rowscontext - loading contextCopyright © 2021 ALM Works. All Rights Reserved.