Class DocValuesStats.SortedDoubleDocValuesStats

Enclosing class:
DocValuesStats<T>

public static final class DocValuesStats.SortedDoubleDocValuesStats extends DocValuesStats.SortedNumericDocValuesStats<Double>
Holds DocValues statistics for a sorted-numeric field storing double values.
  • Constructor Details

    • SortedDoubleDocValuesStats

      public SortedDoubleDocValuesStats(String field)
  • Method Details

    • doAccumulate

      protected void doAccumulate(int count) throws IOException
      Description copied from class: DocValuesStats
      Called after DocValuesStats.accumulate(int) was processed and verified that the document has a value for the field. Implementations should update the statistics based on the value of the current document.
      Specified by:
      doAccumulate in class DocValuesStats<Double>
      Parameters:
      count - the updated number of documents with value for this field.
      Throws:
      IOException
    • sum

      public Double sum()
      Description copied from class: DocValuesStats.SortedNumericDocValuesStats
      Returns the sum of values of the field. Note that if the values are large, the sum might overflow.
      Specified by:
      sum in class DocValuesStats.SortedNumericDocValuesStats<Double>
    • merge

      protected void merge(DocValuesStats<Double> other)
      Description copied from class: DocValuesStats
      Merges the statistics from other into this instance. After the call, this instance reflects the combined statistics of both segments as if they had been collected together. Subclasses that track additional statistics (e.g. mean, variance, sum) must override this method, call super.merge(other), and combine their own fields accordingly.
      Overrides:
      merge in class DocValuesStats.SortedNumericDocValuesStats<Double>
      Parameters:
      other - the stats instance to merge into this one; must be of the same concrete type