Package org.apache.lucene.search
Class DocValuesStats.DoubleDocValuesStats
- java.lang.Object
-
- org.apache.lucene.search.DocValuesStats<T>
-
- org.apache.lucene.search.DocValuesStats.NumericDocValuesStats<Double>
-
- org.apache.lucene.search.DocValuesStats.DoubleDocValuesStats
-
- Enclosing class:
- DocValuesStats<T>
public static final class DocValuesStats.DoubleDocValuesStats extends DocValuesStats.NumericDocValuesStats<Double>
Holds DocValues statistics for a numeric field storingdouble
values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.DocValuesStats
DocValuesStats.DoubleDocValuesStats, DocValuesStats.LongDocValuesStats, DocValuesStats.NumericDocValuesStats<T extends Number>, DocValuesStats.SortedDocValuesStats, DocValuesStats.SortedDoubleDocValuesStats, DocValuesStats.SortedLongDocValuesStats, DocValuesStats.SortedNumericDocValuesStats<T extends Number>, DocValuesStats.SortedSetDocValuesStats
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.DocValuesStats.NumericDocValuesStats
mean, ndv, variance
-
Fields inherited from class org.apache.lucene.search.DocValuesStats
field, max, min
-
-
Constructor Summary
Constructors Constructor Description DoubleDocValuesStats(String field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAccumulate(int count)
Called afterDocValuesStats.accumulate(int)
was processed and verified that the document has a value for the field.Double
sum()
Returns the sum of values of the field.-
Methods inherited from class org.apache.lucene.search.DocValuesStats.NumericDocValuesStats
hasValue, init, mean, stdev, variance
-
-
-
-
Constructor Detail
-
DoubleDocValuesStats
public DoubleDocValuesStats(String field)
-
-
Method Detail
-
doAccumulate
protected void doAccumulate(int count) throws IOException
Description copied from class:DocValuesStats
Called afterDocValuesStats.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 classDocValuesStats<Double>
- Parameters:
count
- the updated number of documents with value for this field.- Throws:
IOException
-
sum
public Double sum()
Description copied from class:DocValuesStats.NumericDocValuesStats
Returns the sum of values of the field. Note that if the values are large, thesum
might overflow.- Specified by:
sum
in classDocValuesStats.NumericDocValuesStats<Double>
-
-