Class ValuesSource.Numeric
java.lang.Object
org.opensearch.search.aggregations.support.ValuesSource
org.opensearch.search.aggregations.support.ValuesSource.Numeric
- Direct Known Subclasses:
RoundingValuesSource
,ValuesSource.Numeric.FieldData
,ValuesSource.Numeric.Script
,ValuesSource.Numeric.WithScript
- Enclosing class:
ValuesSource
Numeric values source type
- Opensearch.internal:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Field data for numericsstatic class
ValuesSource
implementation for stand alone scripts returning a Numeric valuestatic class
ValuesSource
subclass for Numeric fields with a Value Script appliedNested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.GeoShape, ValuesSource.Numeric, ValuesSource.Range
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocsWithValue
(org.apache.lucene.index.LeafReaderContext context) abstract SortedNumericDoubleValues
doubleValues
(org.apache.lucene.index.LeafReaderContext context) Get the currentSortedNumericDoubleValues
.abstract boolean
Whether the underlying data is big integer or not.abstract boolean
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
.roundingPreparer
(org.apache.lucene.index.IndexReader reader) Build a function prepares rounding values to be called many times.Methods inherited from class org.opensearch.search.aggregations.support.ValuesSource
bytesValues, hasGlobalOrdinals, needsScores
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Numeric
public Numeric()
-
-
Method Details
-
isFloatingPoint
public abstract boolean isFloatingPoint()Whether the underlying data is floating-point or not. -
isBigInteger
public abstract boolean isBigInteger()Whether the underlying data is big integer or not. -
longValues
public abstract org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext context) throws IOException Get the currentSortedNumericDocValues
.- Throws:
IOException
-
doubleValues
public abstract SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext context) throws IOException Get the currentSortedNumericDoubleValues
.- Throws:
IOException
-
docsWithValue
public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
docsWithValue
in classValuesSource
- Throws:
IOException
-
roundingPreparer
public Function<Rounding,Rounding.Prepared> roundingPreparer(org.apache.lucene.index.IndexReader reader) throws IOException Description 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:
IOException
-