Module org.elasticsearch.server
Package org.elasticsearch.script.field
Interface DocValuesScriptFieldFactory
- All Superinterfaces:
- ScriptFieldFactory
- All Known Implementing Classes:
- AbstractLongDocValuesField,- BaseKeywordDocValuesField,- BinaryDenseVectorDocValuesField,- BinaryDocValuesField,- BooleanDocValuesField,- ByteDocValuesField,- DateMillisDocValuesField,- DateNanosDocValuesField,- DelegateDocValuesField,- DenseVectorDocValuesField,- DoubleDocValuesField,- FlattenedDocValuesField,- FloatDocValuesField,- GeoPointDocValuesField,- HalfFloatDocValuesField,- IntegerDocValuesField,- IpDocValuesField,- KeywordDocValuesField,- KnnDenseVectorDocValuesField,- LongDocValuesField,- ScaledFloatDocValuesField,- SeqNoDocValuesField,- ShortDocValuesField,- VersionDocValuesField
This interface is used to mark classes that generate
 both 
Field and ScriptDocValues for use in a script.- 
Method SummaryModifier and TypeMethodDescriptionvoidsetNextDocId(int docId) Set the current document ID.Returns aScriptDocValuesof the appropriate type for this field.Methods inherited from interface org.elasticsearch.script.field.ScriptFieldFactorytoScriptField
- 
Method Details- 
setNextDocIdSet the current document ID.- Throws:
- IOException
 
- 
toScriptDocValuesScriptDocValues<?> toScriptDocValues()Returns aScriptDocValuesof the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedocvariable.
 
-