java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<Object>
org.elasticsearch.script.field.DelegateDocValuesField
- All Implemented Interfaces:
Iterable<Object>,DocValuesScriptFieldFactory,Field<Object>,ScriptFieldFactory
public class DelegateDocValuesField
extends AbstractScriptFieldFactory<Object>
implements Field<Object>, DocValuesScriptFieldFactory
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.booleanisEmpty()Returnstrueif this field has no values, otherwisefalse.iterator()voidsetNextDocId(int docId) Set the current document ID.intsize()Returns the number of values this field has.Returns aScriptDocValuesof the appropriate type for this field.Methods inherited from class org.elasticsearch.script.field.AbstractScriptFieldFactory
toScriptFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.script.field.ScriptFieldFactory
toScriptField
-
Constructor Details
-
DelegateDocValuesField
-
-
Method Details
-
setNextDocId
Description copied from interface:DocValuesScriptFieldFactorySet the current document ID.- Specified by:
setNextDocIdin interfaceDocValuesScriptFieldFactory- Throws:
IOException
-
toScriptDocValues
Description copied from interface:DocValuesScriptFieldFactoryReturns aScriptDocValuesof the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedocvariable.- Specified by:
toScriptDocValuesin interfaceDocValuesScriptFieldFactory
-
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. -
iterator
-