java.lang.Object
org.elasticsearch.index.fielddata.IndexNumericFieldData
org.elasticsearch.index.fielddata.LongScriptFieldData
- All Implemented Interfaces:
IndexFieldData<LeafNumericFieldData>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ToScriptFieldFactory<org.apache.lucene.index.SortedNumericDocValues>
-
Method Summary
Modifier and TypeMethodDescriptionThe field name.The numeric type of this number.The ValuesSourceType of the underlying data.protected boolean
Return true if, and only if the field is indexed with points that match the content of doc values.load
(org.apache.lucene.index.LeafReaderContext context) Loads the atomic field data for the reader, possibly cached.loadDirect
(org.apache.lucene.index.LeafReaderContext context) Loads directly the atomic field data for the reader, ignoring any caching involved.protected boolean
Should sorting use a custom comparator source vs.Methods inherited from class org.elasticsearch.index.fielddata.IndexNumericFieldData
convertNumeric, dateComparatorSource, dateNanosComparatorSource, newBucketedSort, newBucketedSort, sortField, sortField
-
Field Details
-
toScriptFieldFactory
protected final ToScriptFieldFactory<org.apache.lucene.index.SortedNumericDocValues> toScriptFieldFactory
-
-
Method Details
-
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 LongScriptFieldData.LongScriptLeafFieldData load(org.apache.lucene.index.LeafReaderContext context) Description copied from interface:IndexFieldData
Loads the atomic field data for the reader, possibly cached. -
loadDirect
public LongScriptFieldData.LongScriptLeafFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) throws IOException Description copied from interface:IndexFieldData
Loads directly the atomic field data for the reader, ignoring any caching involved.- Throws:
IOException
-
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
Should sorting use a custom comparator source vs. rely on a LuceneSortField
. Using a LuceneSortField
when possible is important because index sorting cannot be configured with a custom comparator, and because it gives better performance by dynamically pruning irrelevant hits. On the other hand, LuceneSortField
s are less flexible and make stronger assumptions about how the data is indexed. Therefore, they cannot be used in all cases.- Specified by:
sortRequiresCustomComparator
in classIndexNumericFieldData
-
isIndexed
protected boolean isIndexed()Description copied from class:IndexNumericFieldData
Return true if, and only if the field is indexed with points that match the content of doc values.- Specified by:
isIndexed
in classIndexNumericFieldData
-