public class CountingAggregator extends java.lang.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 ordinal)
Collect (and do whatever an implementation deems appropriate) the
category given by its ordinal.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
setNextDoc(int docid,
float score)
Specify the document (and its score in the search) that the following
Aggregator.aggregate(int) calls will pertain to. |
public void aggregate(int ordinal)
Aggregator
Aggregator.setNextDoc(int, float)
.aggregate
in interface Aggregator
public void setNextDoc(int docid, float score)
Aggregator
Aggregator.aggregate(int)
calls will pertain to.setNextDoc
in interface Aggregator
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2000-2023 Apache Software Foundation. All Rights Reserved.