Class ValuesSource.Numeric
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
- Direct Known Subclasses:
CellIdSource
,ValuesSource.Numeric.FieldData
,ValuesSource.Numeric.Script
,ValuesSource.Numeric.WithScript
- Enclosing class:
- ValuesSource
public abstract static class ValuesSource.Numeric extends ValuesSource
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValuesSource.Numeric.FieldData
static class
ValuesSource.Numeric.Script
ValuesSource
implementation for stand alone scripts returning a Numeric valuestatic class
ValuesSource.Numeric.WithScript
ValuesSource
subclass for Numeric fields with a Value Script appliedNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range
-
Field Summary
Fields Modifier and Type Field Description static ValuesSource.Numeric
EMPTY
-
Constructor Summary
Constructors Constructor Description Numeric()
-
Method Summary
Modifier and Type Method Description DocValueBits
docsWithValue(org.apache.lucene.index.LeafReaderContext context)
abstract SortedNumericDoubleValues
doubleValues(org.apache.lucene.index.LeafReaderContext context)
Get the currentSortedNumericDoubleValues
.abstract boolean
isFloatingPoint()
Whether the underlying data is floating-point or not.abstract org.apache.lucene.index.SortedNumericDocValues
longValues(org.apache.lucene.index.LeafReaderContext context)
Get the currentSortedNumericDocValues
.java.util.function.Function<Rounding,Rounding.Prepared>
roundingPreparer()
Build a function prepares rounding values to be called many times.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
bytesValues, hasGlobalOrdinals, needsScores
-
Field Details
-
Constructor Details
-
Numeric
public Numeric()
-
-
Method Details
-
isFloatingPoint
public abstract boolean isFloatingPoint()Whether the underlying data is floating-point or not. -
longValues
public abstract org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionGet the currentSortedNumericDocValues
.- Throws:
java.io.IOException
-
doubleValues
public abstract SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionGet the currentSortedNumericDoubleValues
.- Throws:
java.io.IOException
-
docsWithValue
public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException- Specified by:
docsWithValue
in classValuesSource
- Throws:
java.io.IOException
-
roundingPreparer
public java.util.function.Function<Rounding,Rounding.Prepared> roundingPreparer() throws java.io.IOExceptionDescription copied from class:ValuesSource
Build a function prepares rounding values to be called many times.This returns a Function because auto date histogram will need to call it many times over the course of running the aggregation.
- Specified by:
roundingPreparer
in classValuesSource
- Throws:
java.io.IOException
-