public abstract class AbstractDistinctSumLoader<T,E,X> extends AbstractAttributeLoader<T> implements AttributeLoader.ForestIndependent<T>
AttributeLoader.Aggregate<T>, AttributeLoader.AggregateContext<T>, AttributeLoader.Context, AttributeLoader.ForestIndependent<T>, AttributeLoader.Propagate<T>, AttributeLoader.PropagateContext<T>
mySpec
Constructor and Description |
---|
AbstractDistinctSumLoader(AttributeSpec<T> spec,
AttributeSpec<T> nonDistinctSpec,
AttributeSpec<E> dependentAttribute) |
Modifier and Type | Method and Description |
---|---|
protected abstract AttributeValue<T> |
finalize(X value) |
Set<? extends AttributeSpec<?>> |
getAttributeDependencies() |
AttributeCachingStrategy |
getCachingStrategy() |
protected Map<ItemIdentity,Integer> |
getChildrenCounts(AttributeLoader.Context context) |
protected Map<ItemIdentity,E> |
getChildrenValues(AttributeLoader.Context context) |
protected abstract X |
initializeWithNonDistinctValue(T value) |
boolean |
isEveryItemTypeSupported() |
boolean |
isItemTypeSupported(String itemType) |
AttributeValue<T> |
loadValue(StructureRow row,
AttributeLoader.Context context) |
protected abstract X |
removeDuplicates(X before,
E argument,
int extraInstancesCount) |
getAttributeSpec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeSpec
public AbstractDistinctSumLoader(AttributeSpec<T> spec, AttributeSpec<T> nonDistinctSpec, AttributeSpec<E> dependentAttribute)
public final boolean isEveryItemTypeSupported()
isEveryItemTypeSupported
in interface AttributeLoader<T>
public final boolean isItemTypeSupported(String itemType)
isItemTypeSupported
in interface AttributeLoader<T>
public AttributeCachingStrategy getCachingStrategy()
getCachingStrategy
in interface AttributeLoader<T>
@NotNull public Set<? extends AttributeSpec<?>> getAttributeDependencies()
getAttributeDependencies
in interface AttributeLoader<T>
@Nullable protected Map<ItemIdentity,E> getChildrenValues(AttributeLoader.Context context)
@Nullable protected Map<ItemIdentity,Integer> getChildrenCounts(AttributeLoader.Context context)
@Nullable protected abstract X initializeWithNonDistinctValue(T value)
@NotNull protected abstract X removeDuplicates(@NotNull X before, @NotNull E argument, int extraInstancesCount)
protected abstract AttributeValue<T> finalize(X value)
public AttributeValue<T> loadValue(StructureRow row, AttributeLoader.Context context)
loadValue
in interface AttributeLoader.ForestIndependent<T>
Copyright © 2018 ALM Works. All Rights Reserved.