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, missing
protected double mean
protected double variance
protected NumericDocValues ndv
protected final boolean init(LeafReaderContext context) throws IOException
DocValuesStats
init
in class DocValuesStats<T extends Number>
IOException
protected final boolean hasValue(int doc) throws IOException
DocValuesStats
hasValue
in class DocValuesStats<T extends Number>
IOException
public final double mean()
public final double variance()
public final double stdev()
public abstract T sum()
sum
might overflow.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.