public class AssociationFloatSumAggregator extends java.lang.Object implements Aggregator
Aggregator which updates the weight of a category by summing the
weights of the float association it finds for every document.| Modifier and Type | Field and Description |
|---|---|
protected AssociationsPayloadIterator |
associationsPayloadIterator |
protected java.lang.String |
field |
protected float[] |
sumArray |
| Constructor and Description |
|---|
AssociationFloatSumAggregator(org.apache.lucene.index.IndexReader reader,
float[] sumArray) |
AssociationFloatSumAggregator(java.lang.String field,
org.apache.lucene.index.IndexReader reader,
float[] sumArray) |
| 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. |
protected final java.lang.String field
protected final float[] sumArray
protected final AssociationsPayloadIterator associationsPayloadIterator
public AssociationFloatSumAggregator(org.apache.lucene.index.IndexReader reader,
float[] sumArray)
throws java.io.IOException
java.io.IOExceptionpublic AssociationFloatSumAggregator(java.lang.String field,
org.apache.lucene.index.IndexReader reader,
float[] sumArray)
throws java.io.IOException
java.io.IOExceptionpublic void aggregate(int ordinal)
AggregatorAggregator.setNextDoc(int, float).aggregate in interface Aggregatorpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setNextDoc(int docid,
float score)
throws java.io.IOException
AggregatorAggregator.aggregate(int) calls will pertain to.setNextDoc in interface Aggregatorjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.