Class ValuesSource.Bytes
java.lang.Object
org.opensearch.search.aggregations.support.ValuesSource
org.opensearch.search.aggregations.support.ValuesSource.Bytes
- Direct Known Subclasses:
ValuesSource.Bytes.FieldData
,ValuesSource.Bytes.Script
,ValuesSource.Bytes.WithOrdinals
,ValuesSource.Bytes.WithScript
- Enclosing class:
ValuesSource
Bytes type
- Opensearch.internal:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Field data without ordinalsstatic class
ValuesSource
implementation for stand alone scripts returning a Bytes valuestatic class
Provides ordinals for bytesstatic class
ValuesSource
subclass for Bytes fields with a Value Script appliedNested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.GeoShape, ValuesSource.Numeric, ValuesSource.Range
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondocsWithValue
(org.apache.lucene.index.LeafReaderContext context) final 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.opensearch.search.aggregations.support.ValuesSource
bytesValues, hasGlobalOrdinals, needsScores
-
Constructor Details
-
Bytes
public Bytes()
-
-
Method Details
-
docsWithValue
public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
docsWithValue
in classValuesSource
- Throws:
IOException
-
roundingPreparer
public final 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
-