public static final class DocValuesStats.SortedDoubleDocValuesStats extends DocValuesStats.SortedNumericDocValuesStats<java.lang.Double>
double
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.SortedSetDocValuesStats
Modifier and Type | Field and Description |
---|---|
private double |
sum |
mean, sndv, valuesCount, variance
field, max, min
Constructor and Description |
---|
SortedDoubleDocValuesStats(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.Double |
sum()
Returns the sum of values of the field.
|
hasValue, init, mean, stdev, valuesCount, variance
accumulate, addMissing, count, field, max, min, missing
public SortedDoubleDocValuesStats(java.lang.String field)
protected void doAccumulate(int count) throws java.io.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<java.lang.Double>
count
- the updated number of documents with value for this field.java.io.IOException
public java.lang.Double sum()
DocValuesStats.SortedNumericDocValuesStats
sum
might overflow.sum
in class DocValuesStats.SortedNumericDocValuesStats<java.lang.Double>