Module org.elasticsearch.server
Package org.elasticsearch.script.field
Class DateMillisDocValuesField
java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<ZonedDateTime>
org.elasticsearch.script.field.DateMillisDocValuesField
- All Implemented Interfaces:
Iterable<ZonedDateTime>,ScriptDocValues.Supplier<ZonedDateTime>,DocValuesScriptFieldFactory,Field<ZonedDateTime>,ScriptFieldFactory
public class DateMillisDocValuesField
extends AbstractScriptFieldFactory<ZonedDateTime>
implements Field<ZonedDateTime>, DocValuesScriptFieldFactory, 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.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.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
-
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:DocValuesScriptFieldFactorySet the current document ID.- Specified by:
setNextDocIdin interfaceDocValuesScriptFieldFactory- Specified by:
setNextDocIdin interfaceScriptDocValues.Supplier<ZonedDateTime>- Throws:
IOException
-
resize
protected void resize(int newSize) -
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
-
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>
-