public interface IndexOrdinalsFieldData extends IndexFieldData.Global<AtomicOrdinalsFieldData>
IndexFieldData
for data that is indexed with ordinals.IndexFieldData.Builder, IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.MultiDocValues.OrdinalMap |
getOrdinalMap()
Returns the underlying
MultiDocValues.OrdinalMap for this fielddata
or null if global ordinals are not needed (constant value or single segment). |
IndexOrdinalsFieldData |
loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
Load a global view of the ordinals for the given
IndexReader ,
potentially from a cache. |
IndexOrdinalsFieldData |
localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader)
Load a global view of the ordinals for the given
IndexReader . |
clear, getFieldName, load, loadDirect, sortField
index
IndexOrdinalsFieldData loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
IndexReader
,
potentially from a cache.loadGlobal
in interface IndexFieldData.Global<AtomicOrdinalsFieldData>
IndexOrdinalsFieldData localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws java.lang.Exception
IndexReader
.localGlobalDirect
in interface IndexFieldData.Global<AtomicOrdinalsFieldData>
java.lang.Exception
org.apache.lucene.index.MultiDocValues.OrdinalMap getOrdinalMap()
MultiDocValues.OrdinalMap
for this fielddata
or null if global ordinals are not needed (constant value or single segment).