public interface Aggregator
aggregate(int, float, IntsRef)
. Note that the document IDs are local
to the reader given to setNextReader(AtomicReaderContext)
.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 |
setNextReader(AtomicReaderContext context)
Sets the
AtomicReaderContext for which
aggregate(int, float, IntsRef) calls will be made. |
boolean setNextReader(AtomicReaderContext context) throws IOException
AtomicReaderContext
for which
aggregate(int, float, IntsRef)
calls will be made. If this method
returns false, aggregate(int, float, IntsRef)
should not be called
for this reader.IOException
void aggregate(int docID, float score, IntsRef ordinals) throws IOException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.