Class ValuesSource.Bytes
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes
- Direct Known Subclasses:
ValuesSource.Bytes.FieldData
,ValuesSource.Bytes.Script
,ValuesSource.Bytes.WithOrdinals
,ValuesSource.Bytes.WithScript
- Enclosing class:
- ValuesSource
public abstract static class ValuesSource.Bytes extends ValuesSource
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValuesSource.Bytes.FieldData
static class
ValuesSource.Bytes.Script
ValuesSource
implementation for stand alone scripts returning a Bytes valuestatic class
ValuesSource.Bytes.WithOrdinals
static class
ValuesSource.Bytes.WithScript
ValuesSource
subclass for Bytes fields with a Value Script appliedNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range
-
Constructor Summary
Constructors Constructor Description Bytes()
-
Method Summary
Modifier and Type Method Description DocValueBits
docsWithValue(org.apache.lucene.index.LeafReaderContext context)
java.util.function.Function<Rounding,Rounding.Prepared>
roundingPreparer()
Build a function prepares rounding values to be called many times.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
bytesValues, hasGlobalOrdinals, needsScores
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Bytes
public Bytes()
-
-
Method Details
-
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 final java.util.function.Function<Rounding,Rounding.Prepared> roundingPreparer() 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
-