Class ScriptDocValues.Dates
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- org.elasticsearch.index.fielddata.ScriptDocValues<org.joda.time.ReadableDateTime>
-
- org.elasticsearch.index.fielddata.ScriptDocValues.Dates
-
- All Implemented Interfaces:
java.lang.Iterable<org.joda.time.ReadableDateTime>
,java.util.Collection<org.joda.time.ReadableDateTime>
,java.util.List<org.joda.time.ReadableDateTime>
- Enclosing class:
- ScriptDocValues<T>
public static final class ScriptDocValues.Dates extends ScriptDocValues<org.joda.time.ReadableDateTime>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Strings
-
-
Field Summary
Fields Modifier and Type Field Description protected static DeprecationLogger
deprecationLogger
-
Constructor Summary
Constructors Constructor Description Dates(org.apache.lucene.index.SortedNumericDocValues in)
Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.joda.time.ReadableDateTime
get(int index)
org.joda.time.ReadableDateTime
getDate()
Deprecated.java.util.List<org.joda.time.ReadableDateTime>
getDates()
Deprecated.org.joda.time.ReadableDateTime
getValue()
Fetch the first field value or 0 millis after epoch if there are no in.void
setNextDocId(int docId)
Set the current doc ID.int
size()
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, retainAll, spliterator, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
add, getValues, remove, replaceAll, set, sort
-
-
-
-
Field Detail
-
deprecationLogger
protected static final DeprecationLogger deprecationLogger
-
-
Method Detail
-
getValue
public org.joda.time.ReadableDateTime getValue()
Fetch the first field value or 0 millis after epoch if there are no in.
-
getDate
@Deprecated public org.joda.time.ReadableDateTime getDate()
Deprecated.Fetch the first value. Added for backwards compatibility with 5.x when date fields wereScriptDocValues.Longs
.
-
getDates
@Deprecated public java.util.List<org.joda.time.ReadableDateTime> getDates()
Deprecated.Fetch all the values. Added for backwards compatibility with 5.x when date fields wereScriptDocValues.Longs
.
-
get
public org.joda.time.ReadableDateTime get(int index)
- Specified by:
get
in interfacejava.util.List<org.joda.time.ReadableDateTime>
- Specified by:
get
in classjava.util.AbstractList<org.joda.time.ReadableDateTime>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<org.joda.time.ReadableDateTime>
- Specified by:
size
in interfacejava.util.List<org.joda.time.ReadableDateTime>
- Specified by:
size
in classjava.util.AbstractCollection<org.joda.time.ReadableDateTime>
-
setNextDocId
public void setNextDocId(int docId) throws java.io.IOException
Description copied from class:ScriptDocValues
Set the current doc ID.- Specified by:
setNextDocId
in classScriptDocValues<org.joda.time.ReadableDateTime>
- Throws:
java.io.IOException
-
-