public class CountingAggregator extends Object implements Aggregator
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
counterArray |
| Constructor and Description |
|---|
CountingAggregator(int[] counterArray) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(int docID,
float score,
IntsRef ordinals)
Aggregate the ordinals of the given document ID (and its score).
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
setNextReader(AtomicReaderContext context)
Sets the
AtomicReaderContext for which
Aggregator.aggregate(int, float, IntsRef) calls will be made. |
public void aggregate(int docID,
float score,
IntsRef ordinals)
throws IOException
Aggregatoraggregate in interface AggregatorIOExceptionpublic boolean setNextReader(AtomicReaderContext context) throws IOException
AggregatorAtomicReaderContext for which
Aggregator.aggregate(int, float, IntsRef) calls will be made. If this method
returns false, Aggregator.aggregate(int, float, IntsRef) should not be called
for this reader.setNextReader in interface AggregatorIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.