Class DateScriptFieldData
java.lang.Object
org.elasticsearch.index.fielddata.IndexNumericFieldData
org.elasticsearch.index.fielddata.DateScriptFieldData
- All Implemented Interfaces:
IndexFieldData<LeafNumericFieldData>
public final class DateScriptFieldData extends IndexNumericFieldData
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateScriptFieldData.Builder
static class
DateScriptFieldData.DateScriptLeafFieldData
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.IndexNumericFieldData
IndexNumericFieldData.NumericType
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource
-
Method Summary
Modifier and Type Method Description java.lang.String
getFieldName()
The field name.IndexNumericFieldData.NumericType
getNumericType()
The numeric type of this number.ValuesSourceType
getValuesSourceType()
The ValuesSourceType of the underlying data.DateScriptFieldData.DateScriptLeafFieldData
load(org.apache.lucene.index.LeafReaderContext context)
Loads the atomic field data for the reader, possibly cached.DateScriptFieldData.DateScriptLeafFieldData
loadDirect(org.apache.lucene.index.LeafReaderContext context)
Loads directly the atomic field data for the reader, ignoring any caching involved.protected boolean
sortRequiresCustomComparator()
DoesIndexNumericFieldData.sortField(org.elasticsearch.index.fielddata.IndexNumericFieldData.NumericType, java.lang.Object, org.elasticsearch.search.MultiValueMode, org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource.Nested, boolean)
require a custom comparator because of the way the data is stored in doc values (true
) or are the docs values stored such that they can be sorted without decoding (false
).Methods inherited from class org.elasticsearch.index.fielddata.IndexNumericFieldData
convertNumeric, dateComparatorSource, dateNanosComparatorSource, newBucketedSort, newBucketedSort, sortField, sortField
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getFieldName
public java.lang.String getFieldName()Description copied from interface:IndexFieldData
The field name. -
getValuesSourceType
Description copied from interface:IndexFieldData
The ValuesSourceType of the underlying data. It's possible for fields that use the same IndexFieldData implementation to have different ValuesSourceTypes, such as in the case of Longs and Dates. -
load
public DateScriptFieldData.DateScriptLeafFieldData load(org.apache.lucene.index.LeafReaderContext context)Description copied from interface:IndexFieldData
Loads the atomic field data for the reader, possibly cached. -
loadDirect
public DateScriptFieldData.DateScriptLeafFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context)Description copied from interface:IndexFieldData
Loads directly the atomic field data for the reader, ignoring any caching involved. -
getNumericType
Description copied from class:IndexNumericFieldData
The numeric type of this number.- Specified by:
getNumericType
in classIndexNumericFieldData
-
sortRequiresCustomComparator
protected boolean sortRequiresCustomComparator()Description copied from class:IndexNumericFieldData
DoesIndexNumericFieldData.sortField(org.elasticsearch.index.fielddata.IndexNumericFieldData.NumericType, java.lang.Object, org.elasticsearch.search.MultiValueMode, org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource.Nested, boolean)
require a custom comparator because of the way the data is stored in doc values (true
) or are the docs values stored such that they can be sorted without decoding (false
).- Specified by:
sortRequiresCustomComparator
in classIndexNumericFieldData
-