public interface Aggregator
Collector
), for processing the categories
belonging to a certain document. The Aggregator is responsible for doing
whatever it wishes with the categories it is fed, e.g., counting the number
of times that each category appears, or performing some computation on their
association values.
Much of the function of an Aggregator implementation is not described by this interface. This includes the constructor and getter methods to retrieve the results of the aggregation.
Modifier and Type | Method and Description |
---|---|
void |
aggregate(int ordinal)
Collect (and do whatever an implementation deems appropriate) the
category given by its ordinal.
|
void |
setNextDoc(int docid,
float score)
Specify the document (and its score in the search) that the following
aggregate(int) calls will pertain to. |
void setNextDoc(int docid, float score) throws IOException
aggregate(int)
calls will pertain to.IOException
void aggregate(int ordinal)
setNextDoc(int, float)
.