Module org.elasticsearch.server
Package org.elasticsearch.script.field
Class DateNanosDocValuesField
java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<ZonedDateTime>
org.elasticsearch.script.field.DateNanosDocValuesField
- All Implemented Interfaces:
- Iterable<ZonedDateTime>,- ScriptDocValues.Supplier<ZonedDateTime>,- DocValuesScriptFieldFactory,- Field<ZonedDateTime>,- ScriptFieldFactory
public class DateNanosDocValuesField
extends AbstractScriptFieldFactory<ZonedDateTime>
implements Field<ZonedDateTime>, DocValuesScriptFieldFactory, ScriptDocValues.Supplier<ZonedDateTime>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDateNanosDocValuesField(org.apache.lucene.index.SortedNumericDocValues input, String name) 
- 
Method SummaryModifier 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.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
- 
Field Details- 
inputprotected final org.apache.lucene.index.SortedNumericDocValues input
- 
name
- 
values
- 
countprotected int count
 
- 
- 
Constructor Details- 
DateNanosDocValuesField
 
- 
- 
Method Details- 
setNextDocIdDescription copied from interface:DocValuesScriptFieldFactorySet the current document ID.- Specified by:
- setNextDocIdin interface- DocValuesScriptFieldFactory
- Specified by:
- setNextDocIdin interface- ScriptDocValues.Supplier<ZonedDateTime>
- Throws:
- IOException
 
- 
resizeprotected void resize(int newSize) 
- 
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
 
- 
getInternal- Specified by:
- getInternalin interface- ScriptDocValues.Supplier<ZonedDateTime>
 
- 
getNameDescription copied from interface:FieldReturns the name of this field.- Specified by:
- getNamein interface- Field<ZonedDateTime>
 
- 
isEmptypublic boolean isEmpty()Description copied from interface:FieldReturnstrueif this field has no values, otherwisefalse.- Specified by:
- isEmptyin interface- Field<ZonedDateTime>
 
- 
sizepublic int size()Description copied from interface:FieldReturns the number of values this field has.- Specified by:
- sizein interface- Field<ZonedDateTime>
- Specified by:
- sizein interface- ScriptDocValues.Supplier<ZonedDateTime>
 
- 
get
- 
get
- 
iterator- Specified by:
- iteratorin interface- Iterable<ZonedDateTime>
 
 
-