Interface FieldValues<T>

All Known Implementing Classes:
Converters.DelegatingFieldValues, IpFieldMapper.IpFieldType.IpScriptDocValues, IpScriptFieldData.IpScriptDocValues, ScriptDocValues, ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.Geometry, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Strings

public interface FieldValues<T>
The underlying contents of a scripting Field. Implementations include ScriptDocValues, _source, runtime fields, or the converted form of the these values from a Converter.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The first value as a primitive double.
    long
    The first value as a primitive long.
    The first value as a subclass of Object.
    All underlying values.
    boolean
    Are there any values?
    int
    How many values?
  • Method Details

    • isEmpty

      boolean isEmpty()
      Are there any values?
    • size

      int size()
      How many values?
    • getValues

      List<T> getValues()
      All underlying values. Note this boxes primitives
    • getNonPrimitiveValue

      T getNonPrimitiveValue()
      The first value as a subclass of Object. Boxes primitives
    • getLongValue

      long getLongValue()
      The first value as a primitive long. For performance reasons, implementations should avoid intermediate boxings if possible
    • getDoubleValue

      double getDoubleValue()
      The first value as a primitive double. For performance reasons, implementations should avoid intermediate boxings if possible