public class AggregatorIterator<I> extends Object implements CloseableIterator<I>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Aggregator<I,?>> |
aggregators |
protected CloseableIterator<I> |
source |
| Constructor and Description |
|---|
AggregatorIterator(CloseableIterator<I> source) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAggregator(Aggregator<I,?> aggregator) |
void |
close() |
Aggregator<I,?> |
getAggregator(String name) |
boolean |
hasNext() |
I |
next() |
void |
remove() |
protected CloseableIterator<I> source
protected Map<String,Aggregator<I,?>> aggregators
public AggregatorIterator(CloseableIterator<I> source)
source - public void addAggregator(Aggregator<I,?> aggregator)
public Aggregator<I,?> getAggregator(String name)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014. All Rights Reserved.