public abstract static class DocValuesStats.NumericDocValuesStats<T extends Number> extends DocValuesStats<T>
DocValuesStats.DoubleDocValuesStats, DocValuesStats.LongDocValuesStats, DocValuesStats.NumericDocValuesStats<T extends Number>, DocValuesStats.SortedDocValuesStats, DocValuesStats.SortedDoubleDocValuesStats, DocValuesStats.SortedLongDocValuesStats, DocValuesStats.SortedNumericDocValuesStats<T extends Number>, DocValuesStats.SortedSetDocValuesStats| Modifier and Type | Field and Description | 
|---|---|
| protected double | mean | 
| protected NumericDocValues | ndv | 
| protected double | variance | 
field, max, min| Modifier | Constructor and Description | 
|---|---|
| protected  | NumericDocValuesStats(String field,
                     T initialMin,
                     T initialMax) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | hasValue(int doc)Returns whether the given document has a value for the requested DocValues field. | 
| protected boolean | init(LeafReaderContext context)Initializes this object with the given reader context. | 
| double | mean()The mean of all values of the field. | 
| double | stdev()Returns the stdev of all values of the field. | 
| abstract T | sum()Returns the sum of values of the field. | 
| double | variance()Returns the variance of all values of the field. | 
count, doAccumulate, field, max, min, missingprotected double mean
protected double variance
protected NumericDocValues ndv
protected final boolean init(LeafReaderContext context) throws IOException
DocValuesStatsinit in class DocValuesStats<T extends Number>IOExceptionprotected final boolean hasValue(int doc)
                          throws IOException
DocValuesStatshasValue in class DocValuesStats<T extends Number>IOExceptionpublic final double mean()
public final double variance()
public final double stdev()
public abstract T sum()
sum might overflow.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.