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
-
-
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.Numeric
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
EMPTY
-
-
Constructor Summary
Constructors Constructor Description Script(SearchScript.LeafFactory script, ValueType scriptValueType)
-
Method Summary
Modifier and Type Method Description SortedBinaryDocValuesbytesValues(org.apache.lucene.index.LeafReaderContext context)Get the currentValuesSource.WithScript.BytesValues.SortedNumericDoubleValuesdoubleValues(org.apache.lucene.index.LeafReaderContext context)Get the currentSortedNumericDoubleValues.booleanisFloatingPoint()Whether the underlying data is floating-point or not.org.apache.lucene.index.SortedNumericDocValueslongValues(org.apache.lucene.index.LeafReaderContext context)Get the currentSortedNumericDocValues.booleanneedsScores()Whether this values source needs scores.-
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
docsWithValue
-
-
-
-
Constructor Detail
-
Script
public Script(SearchScript.LeafFactory script, ValueType scriptValueType)
-
-
Method Detail
-
isFloatingPoint
public boolean isFloatingPoint()
Description copied from class:ValuesSource.NumericWhether the underlying data is floating-point or not.- Specified by:
isFloatingPointin classValuesSource.Numeric
-
longValues
public org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionDescription copied from class:ValuesSource.NumericGet the currentSortedNumericDocValues.- Specified by:
longValuesin classValuesSource.Numeric- Throws:
java.io.IOException
-
doubleValues
public SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
Description copied from class:ValuesSource.NumericGet the currentSortedNumericDoubleValues.- Specified by:
doubleValuesin classValuesSource.Numeric- Throws:
java.io.IOException
-
bytesValues
public SortedBinaryDocValues bytesValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
Description copied from class:ValuesSourceGet the currentValuesSource.WithScript.BytesValues.- Specified by:
bytesValuesin classValuesSource- Throws:
java.io.IOException
-
needsScores
public boolean needsScores()
Description copied from class:ValuesSourceWhether this values source needs scores.- Overrides:
needsScoresin classValuesSource
-
-