public static final class DocValuesStats.LongDocValuesStats extends DocValuesStats.NumericDocValuesStats<java.lang.Long>
long values.DocValuesStats.DoubleDocValuesStats, DocValuesStats.LongDocValuesStats, DocValuesStats.NumericDocValuesStats<T extends java.lang.Number>, DocValuesStats.SortedDocValuesStats, DocValuesStats.SortedDoubleDocValuesStats, DocValuesStats.SortedLongDocValuesStats, DocValuesStats.SortedNumericDocValuesStats<T extends java.lang.Number>, DocValuesStats.SortedSetDocValuesStatsmean, ndv, variancefield, max, min| Constructor and Description |
|---|
LongDocValuesStats(java.lang.String field) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAccumulate(int count)
Called after
DocValuesStats.accumulate(int) was processed and verified that the document has a value for
the field. |
java.lang.Long |
sum()
Returns the sum of values of the field.
|
hasValue, init, mean, stdev, varianceprotected void doAccumulate(int count)
throws java.io.IOException
DocValuesStatsDocValuesStats.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.doAccumulate in class DocValuesStats<java.lang.Long>count - the updated number of documents with value for this field.java.io.IOExceptionpublic java.lang.Long sum()
DocValuesStats.NumericDocValuesStatssum might overflow.sum in class DocValuesStats.NumericDocValuesStats<java.lang.Long>Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.