Class ValuesSource.Numeric

java.lang.Object
org.opensearch.search.aggregations.support.ValuesSource
org.opensearch.search.aggregations.support.ValuesSource.Numeric
Direct Known Subclasses:
RoundingValuesSource, ValuesSource.Numeric.FieldData, ValuesSource.Numeric.Script, ValuesSource.Numeric.WithScript
Enclosing class:
ValuesSource

public abstract static class ValuesSource.Numeric extends ValuesSource
Numeric values source type
Opensearch.internal:
  • Field Details

  • Constructor Details

    • Numeric

      public Numeric()
  • Method Details

    • isFloatingPoint

      public abstract boolean isFloatingPoint()
      Whether the underlying data is floating-point or not.
    • isBigInteger

      public abstract boolean isBigInteger()
      Whether the underlying data is big integer or not.
    • longValues

      public abstract org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Get the current SortedNumericDocValues.
      Throws:
      IOException
    • doubleValues

      public abstract SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Get the current SortedNumericDoubleValues.
      Throws:
      IOException
    • docsWithValue

      public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Specified by:
      docsWithValue in class ValuesSource
      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 class ValuesSource
      Throws:
      IOException