Interface DocValuesScriptFieldFactory

All Superinterfaces:
ScriptFieldFactory
All Known Implementing Classes:
AbstractKeywordDocValuesField, AbstractLongDocValuesField, BinaryDocValuesField, BooleanDocValuesField, ByteDocValuesField, DateMillisDocValuesField, DateNanosDocValuesField, DelegateDocValuesField, DoubleDocValuesField, FlattenedDocValuesField, FloatDocValuesField, GeoPointDocValuesField, HalfFloatDocValuesField, IntegerDocValuesField, IpDocValuesField, KeywordDocValuesField, LongDocValuesField, ScaledFloatDocValuesField, SeqNoDocValuesField, ShortDocValuesField, VersionDocValuesField

public interface DocValuesScriptFieldFactory extends ScriptFieldFactory
This interface is used to mark classes that generate both Field and ScriptDocValues for use in a script.
  • Method Details

    • setNextDocId

      void setNextDocId(int docId) throws IOException
      Set the current document ID.
      Throws:
      IOException
    • toScriptDocValues

      ScriptDocValues<?> toScriptDocValues()
      Returns a ScriptDocValues of the appropriate type for this field. This is used to support backwards compatibility for accessing field values through the doc variable.