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|
Collect (and do whatever an implementation deems appropriate) the category given by its ordinal.
Specify the document (and its score in the search) that the following
void setNextDoc(int docid, float score) throws IOException
aggregate(int)calls will pertain to.
void aggregate(int ordinal)