Class AbstractMemorylessAggregationOperator<Domain,AggregateResult>
java.lang.Object
tools.refinery.interpreter.matchers.psystem.aggregations.AbstractMemorylessAggregationOperator<Domain,AggregateResult>
- All Implemented Interfaces:
IMultisetAggregationOperator<Domain,
AggregateResult, AggregateResult>
- Direct Known Subclasses:
DoubleSumOperator
,IntegerSumOperator
,LongSumOperator
public abstract class AbstractMemorylessAggregationOperator<Domain,AggregateResult>
extends Object
implements IMultisetAggregationOperator<Domain,AggregateResult,AggregateResult>
An aggregation operator that does not store interim results beyond the final aggregated value.
- Since:
- 1.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone
(AggregateResult original) Clones the given accumulator (with all its internal contents).getAggregate
(AggregateResult result) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.refinery.interpreter.matchers.psystem.aggregations.IMultisetAggregationOperator
aggregateStream, combine, contains, createNeutral, getName, getShortDescription, isNeutral, prettyPrint, update
-
Constructor Details
-
AbstractMemorylessAggregationOperator
public AbstractMemorylessAggregationOperator()
-
-
Method Details
-
getAggregate
- Specified by:
getAggregate
in interfaceIMultisetAggregationOperator<Domain,
AggregateResult, AggregateResult> - Returns:
- the aggregate result obtained from the given intermediate result. May be null to indicate that the current multiset cannot be aggregated (e.g. 0 elements have no minimum).
-
clone
Description copied from interface:IMultisetAggregationOperator
Clones the given accumulator (with all its internal contents).- Specified by:
clone
in interfaceIMultisetAggregationOperator<Domain,
AggregateResult, AggregateResult>
-