Package de.bsvrz.pua.prot.aggregations
Class AggregationResultValue
- java.lang.Object
-
- de.bsvrz.pua.prot.util.ResultValue
-
- de.bsvrz.pua.prot.aggregations.AggregationResultValue
-
- All Implemented Interfaces:
java.io.Serializable
public class AggregationResultValue extends ResultValue
Erweiterung derResultValue
-Klasse um zusätzliche Informationen für Aggregationen zu speichern (z.B. die Anzahl der aggregierten Werte zur Berechnung von Mittelwerten. Bietet Methoden, um über strukturierte Datensätze zu iterieren.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.bsvrz.pua.prot.util.ResultValue
ResultValue.ResultValueOperation
-
-
Field Summary
-
Fields inherited from class de.bsvrz.pua.prot.util.ResultValue
_children, _value, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description AggregationResultValue()
-
Method Summary
Modifier and Type Method Description void
aggregate(ResultValue right)
static <T extends AggregationResultValue>
Tcreate(ResultValue src, java.util.function.Supplier<T> constructor, AbstractAggregation<T> aggregation)
void
finish()
int
getAggregationCount()
Liefert den Wert des Aggregationszählers.void
incAggregationCount()
Erhöht den Aggregationszähler für dieses Objekt.-
Methods inherited from class de.bsvrz.pua.prot.util.ResultValue
cloneForAggregation, equals, getChildren, getValue, hasData, hashCode, isAtomar, isSummable, performOperation, set, toString, truncChildren
-
-
-
-
Method Detail
-
create
public static <T extends AggregationResultValue> T create(ResultValue src, java.util.function.Supplier<T> constructor, AbstractAggregation<T> aggregation)
-
aggregate
public void aggregate(ResultValue right)
-
incAggregationCount
public void incAggregationCount()
Erhöht den Aggregationszähler für dieses Objekt.
-
getAggregationCount
public int getAggregationCount()
Liefert den Wert des Aggregationszählers. Dieser Wert entspricht der Anzahl der aggregierten Werte- Returns:
- Aggregationszähler.
-
finish
public void finish()
-
-