Module org.elasticsearch.server
Class SortedSetOrdinalsIndexFieldData
java.lang.Object
org.elasticsearch.index.fielddata.plain.AbstractIndexOrdinalsFieldData
org.elasticsearch.index.fielddata.plain.SortedSetOrdinalsIndexFieldData
- All Implemented Interfaces:
IndexFieldData<LeafOrdinalsFieldData>,IndexFieldData.Global<LeafOrdinalsFieldData>,IndexOrdinalsFieldData
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexOrdinalsFieldData
AbstractIndexOrdinalsFieldData.PerValueEstimatorNested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource -
Field Summary
Fields inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexOrdinalsFieldData
breakerService, toScriptFieldFactory -
Constructor Summary
ConstructorsConstructorDescriptionSortedSetOrdinalsIndexFieldData(IndexFieldDataCache cache, String fieldName, ValuesSourceType valuesSourceType, CircuitBreakerService breakerService, ToScriptFieldFactory<org.apache.lucene.index.SortedSetDocValues> toScriptFieldFactory) -
Method Summary
Modifier and TypeMethodDescriptionload(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.newBucketedSort(BigArrays bigArrays, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra) Build a sort implementation specialized for aggregations.org.apache.lucene.search.SortFieldsortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Returns theSortFieldto use for sorting.booleanWhether this field data is able to provide a mapping between global and segment ordinals, by returning the underlyingOrdinalMap.Methods inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexOrdinalsFieldData
getFieldName, getOrdinalMap, getValuesSourceType, loadGlobal, loadGlobalDirectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
sortField
-
Constructor Details
-
SortedSetOrdinalsIndexFieldData
public SortedSetOrdinalsIndexFieldData(IndexFieldDataCache cache, String fieldName, ValuesSourceType valuesSourceType, CircuitBreakerService breakerService, ToScriptFieldFactory<org.apache.lucene.index.SortedSetDocValues> toScriptFieldFactory)
-
-
Method Details
-
sortField
public org.apache.lucene.search.SortField sortField(@Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Description copied from interface:IndexFieldDataReturns theSortFieldto use for sorting. -
newBucketedSort
public BucketedSort newBucketedSort(BigArrays bigArrays, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra) Description copied from interface:IndexFieldDataBuild a sort implementation specialized for aggregations. -
load
Description copied from interface:IndexFieldDataLoads the atomic field data for the reader, possibly cached.- Specified by:
loadin interfaceIndexFieldData<LeafOrdinalsFieldData>- Overrides:
loadin classAbstractIndexOrdinalsFieldData
-
loadDirect
Description copied from interface:IndexFieldDataLoads directly the atomic field data for the reader, ignoring any caching involved. -
supportsGlobalOrdinalsMapping
public boolean supportsGlobalOrdinalsMapping()Description copied from interface:IndexOrdinalsFieldDataWhether this field data is able to provide a mapping between global and segment ordinals, by returning the underlyingOrdinalMap. If this method returns false, then callingIndexOrdinalsFieldData.getOrdinalMap()will result in anUnsupportedOperationException.- Specified by:
supportsGlobalOrdinalsMappingin interfaceIndexOrdinalsFieldData- Overrides:
supportsGlobalOrdinalsMappingin classAbstractIndexOrdinalsFieldData
-