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 SortedBinaryDocValues
bytesValues(org.apache.lucene.index.LeafReaderContext context)
Get the currentValuesSource.Bytes.WithScript.BytesValues
.DocValueBits
docsWithValue(org.apache.lucene.index.LeafReaderContext context)
RangeType
rangeType()
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:ValuesSource
Get the currentValuesSource.Bytes.WithScript.BytesValues
.- Specified by:
bytesValues
in classValuesSource
-
docsWithValue
public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException- Specified by:
docsWithValue
in 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: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:
java.io.IOException
-
rangeType
-