Package org.elasticsearch.script.field
Class BinaryDocValuesField
java.lang.Object
org.elasticsearch.script.field.BinaryDocValuesField
- All Implemented Interfaces:
Iterable<ByteBuffer>
,ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
,DocValuesField<ByteBuffer>
,Field<ByteBuffer>
public class BinaryDocValuesField
extends Object
implements DocValuesField<ByteBuffer>, ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(int index, ByteBuffer defaultValue) get
(ByteBuffer defaultValue) org.apache.lucene.util.BytesRef
getInternal
(int index) getName()
Returns the name of this field.Returns aScriptDocValues
of the appropriate type for this field.boolean
isEmpty()
Returnstrue
if this field has no values, otherwisefalse
.iterator()
void
setNextDocId
(int docId) Set the current document ID.int
size()
Returns the number of values this field has.protected ByteBuffer
toWrapped
(int index) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BinaryDocValuesField
-
-
Method Details
-
setNextDocId
Description copied from interface:DocValuesField
Set the current document ID.- Specified by:
setNextDocId
in interfaceDocValuesField<ByteBuffer>
- Specified by:
setNextDocId
in interfaceScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
- Throws:
IOException
-
getScriptDocValues
Description copied from interface:DocValuesField
Returns aScriptDocValues
of the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedoc
variable.- Specified by:
getScriptDocValues
in interfaceDocValuesField<ByteBuffer>
-
getInternal
public org.apache.lucene.util.BytesRef getInternal(int index) - Specified by:
getInternal
in interfaceScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
-
getName
Description copied from interface:Field
Returns the name of this field.- Specified by:
getName
in interfaceField<ByteBuffer>
-
isEmpty
public boolean isEmpty()Description copied from interface:Field
Returnstrue
if this field has no values, otherwisefalse
.- Specified by:
isEmpty
in interfaceField<ByteBuffer>
-
size
public int size()Description copied from interface:Field
Returns the number of values this field has.- Specified by:
size
in interfaceField<ByteBuffer>
- Specified by:
size
in interfaceScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
-
toWrapped
-
get
-
get
-
iterator
- Specified by:
iterator
in interfaceIterable<ByteBuffer>
-