I - input typeE - extracted value typeR - result typepublic abstract class AbstractAggregator<I,E,R> extends Aggregator<I,R>
Aggregator
It provides built-in extraction capabilities that may be used in the accumulation phase.
Extraction rules:
| Modifier and Type | Field and Description |
|---|---|
protected String |
attributePath |
| Constructor and Description |
|---|
AbstractAggregator() |
AbstractAggregator(String attributePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(I entry)
Accumulates the given entries.
|
protected abstract void |
accumulateExtracted(I entry,
E value)
Accumulates a single extracted value.
|
aggregate, combine, onAccumulationFinished, onCombinationFinishedprotected String attributePath
public AbstractAggregator()
public AbstractAggregator(String attributePath)
public final void accumulate(I entry)
Aggregatoraccumulate in class Aggregator<I,R>entry - input to accumulate.protected abstract void accumulateExtracted(I entry, E value)
entry - The entry containing the value.value - If attributePath is not null the methods accumulates the value extracted from the attributePath.
If attributePath is null and the input object is a Map.Entry the method accumulates Map.Entry.getValue().Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.