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 classValuesSource.Numeric.FieldDatastatic classValuesSource.Numeric.ScriptValuesSourceimplementation for stand alone scripts returning a Numeric valuestatic classValuesSource.Numeric.WithScriptValuesSourcesubclass for Numeric fields with a Value Script appliedNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Histogram, ValuesSource.Numeric, ValuesSource.Range -
Field Summary
Fields Modifier and Type Field Description static ValuesSource.NumericEMPTY -
Constructor Summary
Constructors Constructor Description Numeric() -
Method Summary
Modifier and Type Method Description DocValueBitsdocsWithValue(org.apache.lucene.index.LeafReaderContext context)abstract SortedNumericDoubleValuesdoubleValues(org.apache.lucene.index.LeafReaderContext context)Get the currentSortedNumericDoubleValues.abstract booleanisFloatingPoint()Whether the underlying data is floating-point or not.abstract org.apache.lucene.index.SortedNumericDocValueslongValues(org.apache.lucene.index.LeafReaderContext context)Get the currentSortedNumericDocValues.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
bytesValues, 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:
docsWithValuein classValuesSource- Throws:
java.io.IOException
-