Package org.elasticsearch.script.field
Class DelegateDocValuesField
java.lang.Object
org.elasticsearch.script.field.DelegateDocValuesField
- All Implemented Interfaces:
DocValuesField,Field
A default
Field to provide ScriptDocValues for fields
that are not supported by the script fields api.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this field.Returns aScriptDocValuesof the appropriate type for this field.List<?>booleanisEmpty()Returnstrueif this field has no values, otherwisefalse.voidsetNextDocId(int docId) Set the current document ID.intsize()Returns the number of values this field has.
-
Constructor Details
-
DelegateDocValuesField
-
-
Method Details
-
setNextDocId
Description copied from interface:DocValuesFieldSet the current document ID.- Specified by:
setNextDocIdin interfaceDocValuesField- Throws:
IOException
-
getScriptDocValues
Description copied from interface:DocValuesFieldReturns aScriptDocValuesof the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedocvariable.- Specified by:
getScriptDocValuesin interfaceDocValuesField
-
getName
Description copied from interface:FieldReturns the name of this field. -
isEmpty
public boolean isEmpty()Description copied from interface:FieldReturnstrueif this field has no values, otherwisefalse. -
size
public int size()Description copied from interface:FieldReturns the number of values this field has. -
getValue
-
getValues
-