Class ValuesSource.Numeric.Script
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
org.elasticsearch.search.aggregations.support.ValuesSource.Numeric.Script
- Enclosing class:
- ValuesSource.Numeric
public static class ValuesSource.Numeric.Script extends ValuesSource.Numeric
ValuesSource
implementation for stand alone scripts returning a Numeric value-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
ValuesSource.Numeric.FieldData, ValuesSource.Numeric.Script, ValuesSource.Numeric.WithScript
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Histogram, ValuesSource.Numeric, ValuesSource.Range
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
EMPTY
-
Constructor Summary
Constructors Constructor Description Script(AggregationScript.LeafFactory script, ValueType scriptValueType)
-
Method Summary
Modifier and Type Method Description SortedBinaryDocValues
bytesValues(org.apache.lucene.index.LeafReaderContext context)
Get the currentValuesSource.Bytes.WithScript.BytesValues
.SortedNumericDoubleValues
doubleValues(org.apache.lucene.index.LeafReaderContext context)
Get the currentSortedNumericDoubleValues
.boolean
isFloatingPoint()
Whether the underlying data is floating-point or not.org.apache.lucene.index.SortedNumericDocValues
longValues(org.apache.lucene.index.LeafReaderContext context)
Get the currentSortedNumericDocValues
.boolean
needsScores()
Whether this values source needs scores.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
docsWithValue
-
Constructor Details
-
Method Details
-
isFloatingPoint
public boolean isFloatingPoint()Description copied from class:ValuesSource.Numeric
Whether the underlying data is floating-point or not.- Specified by:
isFloatingPoint
in classValuesSource.Numeric
-
longValues
public org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionDescription copied from class:ValuesSource.Numeric
Get the currentSortedNumericDocValues
.- Specified by:
longValues
in classValuesSource.Numeric
- Throws:
java.io.IOException
-
doubleValues
public SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionDescription copied from class:ValuesSource.Numeric
Get the currentSortedNumericDoubleValues
.- Specified by:
doubleValues
in classValuesSource.Numeric
- Throws:
java.io.IOException
-
bytesValues
public SortedBinaryDocValues bytesValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionDescription copied from class:ValuesSource
Get the currentValuesSource.Bytes.WithScript.BytesValues
.- Specified by:
bytesValues
in classValuesSource
- Throws:
java.io.IOException
-
needsScores
public boolean needsScores()Description copied from class:ValuesSource
Whether this values source needs scores.- Overrides:
needsScores
in classValuesSource
-