Interface Field<T>

All Superinterfaces:
Iterable<T>
All Known Subinterfaces:
DocValuesField<T>
All Known Implementing Classes:
AbstractKeywordDocValuesField, AbstractLongDocValuesField, BinaryDocValuesField, BooleanDocValuesField, ByteDocValuesField, DateMillisDocValuesField, DateNanosDocValuesField, DelegateDocValuesField, DoubleDocValuesField, EmptyField, FlattenedDocValuesField, FloatDocValuesField, GeoPointDocValuesField, HalfFloatDocValuesField, IntegerDocValuesField, IpDocValuesField, KeywordDocValuesField, LongDocValuesField, ScaledFloatDocValuesField, SeqNoDocValuesField, ShortDocValuesField, VersionDocValuesField

public interface Field<T> extends Iterable<T>
A field in a document accessible via scripting.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of this field.
    boolean
    Returns true if this field has no values, otherwise false.
    int
    Returns the number of values this field has.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • getName

      String getName()
      Returns the name of this field.
    • isEmpty

      boolean isEmpty()
      Returns true if this field has no values, otherwise false.
    • size

      int size()
      Returns the number of values this field has.