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
  • 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 class ValuesSource
      Throws:
      java.io.IOException
    • roundingPreparer

      public final java.util.function.Function<Rounding,​Rounding.Prepared> roundingPreparer() throws java.io.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 class ValuesSource
      Throws:
      java.io.IOException