Class ValuesSource.Range
java.lang.Object
org.opensearch.search.aggregations.support.ValuesSource
org.opensearch.search.aggregations.support.ValuesSource.Range
- Enclosing class:
ValuesSource
Range type
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.GeoShape, ValuesSource.Numeric, ValuesSource.Range
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbytesValues
(org.apache.lucene.index.LeafReaderContext context) Get the currentValuesSource.Bytes.WithScript.BytesValues
.docsWithValue
(org.apache.lucene.index.LeafReaderContext context) roundingPreparer
(org.apache.lucene.index.IndexReader reader) Build a function prepares rounding values to be called many times.Methods inherited from class org.opensearch.search.aggregations.support.ValuesSource
hasGlobalOrdinals, needsScores
-
Field Details
-
indexFieldData
-
-
Constructor Details
-
Range
-
-
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 IOException - Specified by:
docsWithValue
in classValuesSource
- Throws:
IOException
-
roundingPreparer
public Function<Rounding,Rounding.Prepared> roundingPreparer(org.apache.lucene.index.IndexReader reader) throws IOException Description 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:
IOException
-
rangeType
-