public static final class DocValuesStats.SortedLongDocValuesStats extends DocValuesStats.SortedNumericDocValuesStats<Long>
long
values.DocValuesStats.DoubleDocValuesStats, DocValuesStats.LongDocValuesStats, DocValuesStats.NumericDocValuesStats<T extends Number>, DocValuesStats.SortedDocValuesStats, DocValuesStats.SortedDoubleDocValuesStats, DocValuesStats.SortedLongDocValuesStats, DocValuesStats.SortedNumericDocValuesStats<T extends Number>, DocValuesStats.SortedSetDocValuesStats
mean, sndv, valuesCount, variance
field, max, min
Constructor and Description |
---|
SortedLongDocValuesStats(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. |
Long |
sum()
Returns the sum of values of the field.
|
hasValue, init, mean, stdev, valuesCount, variance
public SortedLongDocValuesStats(String field)
protected void doAccumulate(int count) throws IOException
DocValuesStats
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.doAccumulate
in class DocValuesStats<Long>
count
- the updated number of documents with value for this field.IOException
public Long sum()
DocValuesStats.SortedNumericDocValuesStats
sum
might overflow.sum
in class DocValuesStats.SortedNumericDocValuesStats<Long>
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.