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
  • Field Details

  • Constructor Details

  • Method Details

    • bytesValues

      public SortedBinaryDocValues bytesValues​(org.apache.lucene.index.LeafReaderContext context)
      Description copied from class: ValuesSource
      Get the current ValuesSource.Bytes.WithScript.BytesValues.
      Specified by:
      bytesValues in class ValuesSource
    • 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 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
    • rangeType

      public RangeType rangeType()