Class AssociationIntSumAggregator

  • All Implemented Interfaces:
    Aggregator

    public class AssociationIntSumAggregator
    extends Object
    implements Aggregator
    An Aggregator which updates the weight of a category by summing the weights of the integer association it finds for every document.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Field Detail

      • field

        protected final String field
      • sumArray

        protected final int[] sumArray
    • Constructor Detail

      • AssociationIntSumAggregator

        public AssociationIntSumAggregator​(org.apache.lucene.index.IndexReader reader,
                                           int[] sumArray)
                                    throws IOException
        Throws:
        IOException
      • AssociationIntSumAggregator

        public AssociationIntSumAggregator​(String field,
                                           org.apache.lucene.index.IndexReader reader,
                                           int[] sumArray)
                                    throws IOException
        Throws:
        IOException