public class LongSumOperator extends AbstractMemorylessAggregationOperator<java.lang.Long,java.lang.Long>
Modifier and Type | Field and Description |
---|---|
static LongSumOperator |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
aggregateStream(java.util.stream.Stream<java.lang.Long> stream)
Calculates the aggregate results from a given stream of values; all values are considered as inserted
|
java.lang.Long |
createNeutral() |
java.lang.String |
getName()
A name or identifier of the operator.
|
java.lang.String |
getShortDescription()
A textual description of the operator.
|
boolean |
isNeutral(java.lang.Long result) |
java.lang.Long |
update(java.lang.Long oldResult,
java.lang.Long updateValue,
boolean isInsertion) |
getAggregate
public static final LongSumOperator INSTANCE
public java.lang.String getShortDescription()
IMultisetAggregationOperator
public java.lang.String getName()
IMultisetAggregationOperator
public java.lang.Long createNeutral()
public boolean isNeutral(java.lang.Long result)
public java.lang.Long update(java.lang.Long oldResult, java.lang.Long updateValue, boolean isInsertion)
public java.lang.Long aggregateStream(java.util.stream.Stream<java.lang.Long> stream)
IMultisetAggregationOperator