Package org.apache.lucene.misc.search
Class DocValuesStats.SortedDoubleDocValuesStats
java.lang.Object
org.apache.lucene.misc.search.DocValuesStats<Double>
org.apache.lucene.misc.search.DocValuesStats.SortedNumericDocValuesStats<Double>
org.apache.lucene.misc.search.DocValuesStats.SortedDoubleDocValuesStats
- Enclosing class:
DocValuesStats<T>
public static final class DocValuesStats.SortedDoubleDocValuesStats
extends DocValuesStats.SortedNumericDocValuesStats<Double>
Holds DocValues statistics for a sorted-numeric field storing
double
values.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.misc.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.misc.search.DocValuesStats.SortedNumericDocValuesStats
mean, sndv, valuesCount, variance
Fields inherited from class org.apache.lucene.misc.search.DocValuesStats
field, max, min
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doAccumulate
(int count) Called afterDocValuesStats.accumulate(int)
was processed and verified that the document has a value for the field.sum()
Returns the sum of values of the field.Methods inherited from class org.apache.lucene.misc.search.DocValuesStats.SortedNumericDocValuesStats
hasValue, init, mean, stdev, valuesCount, variance
-
Constructor Details
-
SortedDoubleDocValuesStats
-
-
Method Details
-
doAccumulate
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
Description copied from class:DocValuesStats.SortedNumericDocValuesStats
Returns the sum of values of the field. Note that if the values are large, thesum
might overflow.- Specified by:
sum
in classDocValuesStats.SortedNumericDocValuesStats<Double>
-