public abstract class AbstractAggregation<T extends AggregationResultValue> extends java.lang.Object implements Aggregation
| Constructor and Description |
|---|
AbstractAggregation() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(ResultValue value)
Führt die Aggregierung durch.
|
protected abstract void |
aggregate(T result,
ExpressionResult newValue)
Berechnung der Aggregation, der Implementierende sollte etwas aufrufen wie
result.set(x)
wobei x aus result.getValue() als altem Aggregationswert und newValue als neuem Wert berechnet wird. |
protected abstract java.util.function.Supplier<T> |
createAggregationResultValue() |
void |
finish(T t)
Schließt die Berechnung von T als Aggregationswert ab.
|
ResultValue |
getResult()
Liefert das Ergebnis der Aggregation.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAggregationNamepublic final void aggregate(ResultValue value)
Aggregationaggregate in interface Aggregationvalue - WertAggregation.aggregate(de.bsvrz.pua.prot.util.ResultValue)public final ResultValue getResult() throws java.lang.UnsupportedOperationException
AggregationgetResult in interface Aggregationjava.lang.UnsupportedOperationException - Operation kann auf den Daten nicht durchgeführt werden.Aggregation.getResult()protected abstract java.util.function.Supplier<T> createAggregationResultValue()
public void finish(T t)
t - Bisheriger berechneter Wert und Rückgabeprotected abstract void aggregate(T result, ExpressionResult newValue)
result.set(x)
wobei x aus result.getValue() als altem Aggregationswert und newValue als neuem Wert berechnet wird.result - Alter Wert und RückgabenewValue - Wert der dazu aggregiert werden sollpublic java.lang.String toString()
toString in class java.lang.Object