Package org.elasticsearch.script.field
Class BooleanDocValuesField
java.lang.Object
org.elasticsearch.script.field.BooleanDocValuesField
- All Implemented Interfaces:
Iterable<Boolean>,ScriptDocValues.Supplier<Boolean>,DocValuesField<Boolean>,Field<Boolean>
public class BooleanDocValuesField
extends Object
implements DocValuesField<Boolean>, ScriptDocValues.Supplier<Boolean>
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanDocValuesField(org.apache.lucene.index.SortedNumericDocValues input, String name) -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(boolean defaultValue) booleanget(int index, boolean defaultValue) getInternal(int index) getName()Returns the name of this field.Returns aScriptDocValuesof the appropriate type for 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BooleanDocValuesField
-
-
Method Details
-
setNextDocId
Description copied from interface:DocValuesFieldSet the current document ID.- Specified by:
setNextDocIdin interfaceDocValuesField<Boolean>- Specified by:
setNextDocIdin interfaceScriptDocValues.Supplier<Boolean>- 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<Boolean>
-
getInternal
- Specified by:
getInternalin interfaceScriptDocValues.Supplier<Boolean>
-
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
public boolean get(boolean defaultValue) -
get
public boolean get(int index, boolean defaultValue) -
iterator
-