java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<ByteBuffer>
org.elasticsearch.script.field.BinaryDocValuesField
- All Implemented Interfaces:
- Iterable<ByteBuffer>,- ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>,- DocValuesScriptFieldFactory,- Field<ByteBuffer>,- ScriptFieldFactory
public class BinaryDocValuesField
extends AbstractScriptFieldFactory<ByteBuffer>
implements Field<ByteBuffer>, DocValuesScriptFieldFactory, ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionget(int index, ByteBuffer defaultValue) get(ByteBuffer defaultValue) org.apache.lucene.util.BytesRefgetInternal(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.protected ByteBuffertoWrapped(int index) Methods inherited from class org.elasticsearch.script.field.AbstractScriptFieldFactorytoScriptFieldMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.elasticsearch.script.field.ScriptFieldFactorytoScriptField
- 
Constructor Details- 
BinaryDocValuesField
 
- 
- 
Method Details- 
setNextDocIdDescription copied from interface:DocValuesScriptFieldFactorySet the current document ID.- Specified by:
- setNextDocIdin interface- DocValuesScriptFieldFactory
- Specified by:
- setNextDocIdin interface- ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
- Throws:
- IOException
 
- 
toScriptDocValuesDescription 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 interface- DocValuesScriptFieldFactory
 
- 
getInternalpublic org.apache.lucene.util.BytesRef getInternal(int index) - Specified by:
- getInternalin interface- ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
 
- 
getNameDescription copied from interface:FieldReturns the name of this field.- Specified by:
- getNamein interface- Field<ByteBuffer>
 
- 
isEmptypublic boolean isEmpty()Description copied from interface:FieldReturnstrueif this field has no values, otherwisefalse.- Specified by:
- isEmptyin interface- Field<ByteBuffer>
 
- 
sizepublic int size()Description copied from interface:FieldReturns the number of values this field has.- Specified by:
- sizein interface- Field<ByteBuffer>
- Specified by:
- sizein interface- ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
 
- 
toWrapped
- 
get
- 
get
- 
iterator- Specified by:
- iteratorin interface- Iterable<ByteBuffer>
 
 
-