Class DocValuesStats.LongDocValuesStats

Enclosing class:
DocValuesStats<T>

public static final class DocValuesStats.LongDocValuesStats extends DocValuesStats.NumericDocValuesStats<Long>
Holds DocValues statistics for a numeric field storing long values.
  • Constructor Details

    • LongDocValuesStats

      public LongDocValuesStats(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<Long>
      Parameters:
      count - the updated number of documents with value for this field.
      Throws:
      IOException
    • sum

      public Long sum()
      Description copied from class: DocValuesStats.NumericDocValuesStats
      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.NumericDocValuesStats<Long>