|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Aggregator
An Aggregator is the analogue of Lucene's Collector (see
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void setNextDoc(int docid, float score) throws IOException
aggregate(int)
calls will pertain to.
IOException
void aggregate(int ordinal)
setNextDoc(int, float)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |