public class LongSumLoader extends SingleDependencyReducingAggregateLoader<Long>
AttributeLoader.Aggregate<T>, AttributeLoader.AggregateContext<T>, AttributeLoader.Context, AttributeLoader.ForestIndependent<T>, AttributeLoader.Propagate<T>, AttributeLoader.PropagateContext<T>myDependencymySpec| Constructor and Description |
|---|
LongSumLoader(AttributeSpec<Long> spec,
AttributeSpec<Long> dependency) |
| Modifier and Type | Method and Description |
|---|---|
Long |
reduce(List<Long> list)
Reduces the list of values to one value.
|
getAttributeDependencies, getSelfValueloadValuefirstChildError, getCachingStrategy, isEveryItemTypeSupported, isItemTypeSupportedgetAttributeSpecclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, merge, mergegetAttributeSpecpublic LongSumLoader(AttributeSpec<Long> spec, AttributeSpec<Long> dependency)
public Long reduce(@NotNull List<Long> list)
ValueReducermerge methods if not overridden. Can be called from convert methodlist - list of values, every item can be nullCopyright © 2018 ALM Works. All Rights Reserved.