Class ValuesSource.Range
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.Range
- Enclosing class:
- ValuesSource
public static class ValuesSource.Range extends ValuesSource
-
Nested Class Summary
Nested 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 protected IndexFieldData<?>indexFieldData -
Constructor Summary
Constructors Constructor Description Range(IndexFieldData<?> indexFieldData, RangeType rangeType) -
Method Summary
Modifier and Type Method Description SortedBinaryDocValuesbytesValues(org.apache.lucene.index.LeafReaderContext context)Get the currentValuesSource.Bytes.WithScript.BytesValues.DocValueBitsdocsWithValue(org.apache.lucene.index.LeafReaderContext context)RangeTyperangeType()java.util.function.Function<Rounding,Rounding.Prepared>roundingPreparer(org.apache.lucene.index.IndexReader reader)Build a function prepares rounding values to be called many times.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
hasGlobalOrdinals, needsScores
-
Field Details
-
Constructor Details
-
Method Details
-
bytesValues
Description copied from class:ValuesSourceGet the currentValuesSource.Bytes.WithScript.BytesValues.- Specified by:
bytesValuesin classValuesSource
-
docsWithValue
public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException- Specified by:
docsWithValuein classValuesSource- Throws:
java.io.IOException
-
roundingPreparer
public java.util.function.Function<Rounding,Rounding.Prepared> roundingPreparer(org.apache.lucene.index.IndexReader reader) throws java.io.IOExceptionDescription copied from class:ValuesSourceBuild 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:
roundingPreparerin classValuesSource- Throws:
java.io.IOException
-
rangeType
-