java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<IPAddress>
org.elasticsearch.script.field.IpDocValuesField
- All Implemented Interfaces:
Iterable<IPAddress>,ScriptDocValues.Supplier<String>,DocValuesScriptFieldFactory,Field<IPAddress>,ScriptFieldFactory
public class IpDocValuesField
extends AbstractScriptFieldFactory<IPAddress>
implements Field<IPAddress>, DocValuesScriptFieldFactory, ScriptDocValues.Supplier<String>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classUsed if we do not have global ordinals, such as in the IP runtime field see:IpScriptFieldDataprotected static classUsed if we have access to global ordinals -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final ScriptDocValues.Supplier<InetAddress> protected ScriptDocValues.Strings -
Constructor Summary
ConstructorsConstructorDescriptionIpDocValuesField(org.apache.lucene.index.SortedSetDocValues input, String name) IpDocValuesField(SortedBinaryDocValues input, String name) -
Method Summary
Modifier and TypeMethodDescriptiongetInternal(int index) getName()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
-
Field Details
-
name
-
raw
-
strings
-
-
Constructor Details
-
IpDocValuesField
-
IpDocValuesField
-
-
Method Details
-
setNextDocId
Description copied from interface:DocValuesScriptFieldFactorySet the current document ID.- Specified by:
setNextDocIdin interfaceDocValuesScriptFieldFactory- Specified by:
setNextDocIdin interfaceScriptDocValues.Supplier<String>- Throws:
IOException
-
getInternal
- Specified by:
getInternalin interfaceScriptDocValues.Supplier<String>
-
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
-
asString
-
asString
-
asStrings
-
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. -
get
-
get
-
iterator
-