Interface IndexOrdinalsFieldData
- All Superinterfaces:
IndexFieldData<LeafOrdinalsFieldData>
,IndexFieldData.Global<LeafOrdinalsFieldData>
- All Known Implementing Classes:
AbstractIndexOrdinalsFieldData
,ConstantIndexFieldData
,FlattenedFieldMapper.KeyedFlattenedFieldData
,GlobalOrdinalsIndexFieldData
,GlobalOrdinalsIndexFieldData.Consumer
,PagedBytesIndexFieldData
,SortedSetOrdinalsIndexFieldData
Specialization of
IndexFieldData
for data that is indexed with ordinals.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Builder, IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.OrdinalMap
Returns the underlyingOrdinalMap
for this fielddata or null if global ordinals are not needed (constant value or single segment).loadGlobal
(org.apache.lucene.index.DirectoryReader indexReader) Load a global view of the ordinals for the givenIndexReader
, potentially from a cache.loadGlobalDirect
(org.apache.lucene.index.DirectoryReader indexReader) Load a global view of the ordinals for the givenIndexReader
.boolean
Whether this field data is able to provide a mapping between global and segment ordinals, by returning the underlyingOrdinalMap
.Methods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
getFieldName, getValuesSourceType, load, loadDirect, newBucketedSort, sortField
-
Method Details
-
loadGlobal
Load a global view of the ordinals for the givenIndexReader
, potentially from a cache.- Specified by:
loadGlobal
in interfaceIndexFieldData.Global<LeafOrdinalsFieldData>
-
loadGlobalDirect
IndexOrdinalsFieldData loadGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws Exception Load a global view of the ordinals for the givenIndexReader
.- Specified by:
loadGlobalDirect
in interfaceIndexFieldData.Global<LeafOrdinalsFieldData>
- Throws:
Exception
-
getOrdinalMap
org.apache.lucene.index.OrdinalMap getOrdinalMap()Returns the underlyingOrdinalMap
for this fielddata or null if global ordinals are not needed (constant value or single segment). -
supportsGlobalOrdinalsMapping
boolean supportsGlobalOrdinalsMapping()Whether this field data is able to provide a mapping between global and segment ordinals, by returning the underlyingOrdinalMap
. If this method returns false, then callinggetOrdinalMap()
will result in anUnsupportedOperationException
.
-