Package org.apache.lucene.misc.search
Class DocValuesStats.DoubleDocValuesStats
java.lang.Object
org.apache.lucene.misc.search.DocValuesStats<Double>
org.apache.lucene.misc.search.DocValuesStats.NumericDocValuesStats<Double>
org.apache.lucene.misc.search.DocValuesStats.DoubleDocValuesStats
- Enclosing class:
DocValuesStats<T>
public static final class DocValuesStats.DoubleDocValuesStats
extends DocValuesStats.NumericDocValuesStats<Double>
Holds DocValues statistics for a 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.NumericDocValuesStats
mean, ndv, variance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoAccumulate(int count) Called afterDocValuesStats.accumulate(int)was processed and verified that the document has a value for the field.protected voidmerge(DocValuesStats<Double> other) Merges the statistics fromotherinto this instance.sum()Returns the sum of values of the field.Methods inherited from class org.apache.lucene.misc.search.DocValuesStats.NumericDocValuesStats
hasValue, init, mean, stdev, variance
-
Constructor Details
-
DoubleDocValuesStats
-
-
Method Details
-
doAccumulate
Description copied from class:DocValuesStatsCalled 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:
doAccumulatein classDocValuesStats<Double>- Parameters:
count- the updated number of documents with value for this field.- Throws:
IOException
-
sum
Description copied from class:DocValuesStats.NumericDocValuesStatsReturns the sum of values of the field. Note that if the values are large, thesummight overflow.- Specified by:
sumin classDocValuesStats.NumericDocValuesStats<Double>
-
merge
Description copied from class:DocValuesStatsMerges the statistics fromotherinto this instance. After the call, this instance reflects the combined statistics of both segments as if they had been collected together. Subclasses that track additional statistics (e.g. mean, variance, sum) must override this method, callsuper.merge(other), and combine their own fields accordingly.- Overrides:
mergein classDocValuesStats.NumericDocValuesStats<Double>- Parameters:
other- the stats instance to merge into this one; must be of the same concrete type
-