Package org.elasticsearch.script.field
Class DateMillisDocValuesField
java.lang.Object
org.elasticsearch.script.field.DateMillisDocValuesField
- All Implemented Interfaces:
Iterable<ZonedDateTime>,ScriptDocValues.Supplier<ZonedDateTime>,DocValuesField<ZonedDateTime>,Field<ZonedDateTime>
public class DateMillisDocValuesField
extends Object
implements DocValuesField<ZonedDateTime>, ScriptDocValues.Supplier<ZonedDateTime>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDateMillisDocValuesField(org.apache.lucene.index.SortedNumericDocValues input, String name) -
Method Summary
Modifier and TypeMethodDescriptionget(int index, ZonedDateTime defaultValue) get(ZonedDateTime 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()protected voidresize(int newSize) 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
-
Field Details
-
input
protected final org.apache.lucene.index.SortedNumericDocValues input -
name
-
values
-
count
protected int count
-
-
Constructor Details
-
DateMillisDocValuesField
-
-
Method Details
-
setNextDocId
Description copied from interface:DocValuesFieldSet the current document ID.- Specified by:
setNextDocIdin interfaceDocValuesField<ZonedDateTime>- Specified by:
setNextDocIdin interfaceScriptDocValues.Supplier<ZonedDateTime>- Throws:
IOException
-
resize
protected void resize(int newSize) -
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<ZonedDateTime>
-
getInternal
- Specified by:
getInternalin interfaceScriptDocValues.Supplier<ZonedDateTime>
-
getName
Description copied from interface:FieldReturns the name of this field.- Specified by:
getNamein interfaceField<ZonedDateTime>
-
isEmpty
public boolean isEmpty()Description copied from interface:FieldReturnstrueif this field has no values, otherwisefalse.- Specified by:
isEmptyin interfaceField<ZonedDateTime>
-
size
public int size()Description copied from interface:FieldReturns the number of values this field has.- Specified by:
sizein interfaceField<ZonedDateTime>- Specified by:
sizein interfaceScriptDocValues.Supplier<ZonedDateTime>
-
get
-
get
-
iterator
- Specified by:
iteratorin interfaceIterable<ZonedDateTime>
-