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