public abstract class AbstractNaiveDistinctAggregateLoader<T> extends AbstractAggregateLoader<T>
mySpec
Constructor and Description |
---|
AbstractNaiveDistinctAggregateLoader(AttributeSpec<T> spec) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
combine(Collection<T> values,
AggregateAttributeContext context) |
protected abstract T |
getRowValue(RowAttributeContext context) |
AttributeValue<T> |
loadValue(List<AttributeValue<T>> childrenValues,
AggregateAttributeContext context)
Performs aggregate loading.
|
firstChildError
getAttributeSpec, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCachingStrategy
isWholeForestDependent, preload
getAttributeDependencies, getAttributeSpec, getContextDependencies, getGlobalTrail
public AbstractNaiveDistinctAggregateLoader(AttributeSpec<T> spec)
public AttributeValue<T> loadValue(List<AttributeValue<T>> childrenValues, AggregateAttributeContext context)
AggregateAttributeLoader
Performs 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
childrenValues
- the values of this attribute for all children rows, in the same order as the children rowscontext
- loading contextprotected abstract T getRowValue(RowAttributeContext context)
protected abstract T combine(Collection<T> values, AggregateAttributeContext context)
Copyright © 2024 Tempo Software. All Rights Reserved.