Module org.elasticsearch.server
Class SortedDoublesIndexFieldData
java.lang.Object
org.elasticsearch.index.fielddata.IndexNumericFieldData
org.elasticsearch.index.fielddata.plain.SortedDoublesIndexFieldData
- All Implemented Interfaces:
IndexFieldData<LeafNumericFieldData>
FieldData for floating point types
backed by
LeafReader.getSortedNumericDocValues(String)- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.index.fielddata.IndexNumericFieldData
IndexNumericFieldData.NumericTypeNested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final booleanprotected final ToScriptFieldFactory<SortedNumericDoubleValues> protected final ValuesSourceType -
Constructor Summary
ConstructorsConstructorDescriptionSortedDoublesIndexFieldData(String fieldName, IndexNumericFieldData.NumericType numericType, ValuesSourceType valuesSourceType, ToScriptFieldFactory<SortedNumericDoubleValues> toScriptFieldFactory, boolean indexed) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe field name.The numeric type of this number.The ValuesSourceType of the underlying data.booleanReturn 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 booleanShould 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
-
fieldName
-
valuesSourceType
-
toScriptFieldFactory
-
indexed
protected final boolean indexed
-
-
Constructor Details
-
SortedDoublesIndexFieldData
public SortedDoublesIndexFieldData(String fieldName, IndexNumericFieldData.NumericType numericType, ValuesSourceType valuesSourceType, ToScriptFieldFactory<SortedNumericDoubleValues> toScriptFieldFactory, boolean indexed)
-
-
Method Details
-
getFieldName
Description copied from interface:IndexFieldDataThe field name. -
getValuesSourceType
Description copied from interface:IndexFieldDataThe 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. -
sortRequiresCustomComparator
protected boolean sortRequiresCustomComparator()Description copied from class:IndexNumericFieldDataShould sorting use a custom comparator source vs. rely on a LuceneSortField. Using a LuceneSortFieldwhen 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, LuceneSortFields are less flexible and make stronger assumptions about how the data is indexed. Therefore, they cannot be used in all cases.- Specified by:
sortRequiresCustomComparatorin classIndexNumericFieldData
-
isIndexed
public boolean isIndexed()Description copied from class:IndexNumericFieldDataReturn true if, and only if the field is indexed with points that match the content of doc values.- Specified by:
isIndexedin classIndexNumericFieldData
-
getNumericType
Description copied from class:IndexNumericFieldDataThe numeric type of this number.- Specified by:
getNumericTypein classIndexNumericFieldData
-
loadDirect
Description copied from interface:IndexFieldDataLoads directly the atomic field data for the reader, ignoring any caching involved. -
load
Description copied from interface:IndexFieldDataLoads the atomic field data for the reader, possibly cached.
-