public abstract class AbstractIndexOrdinalsFieldData extends AbstractIndexFieldData<AtomicOrdinalsFieldData> implements IndexOrdinalsFieldData
AbstractIndexFieldData.PerValueEstimator
IndexFieldData.Builder, IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
Modifier and Type | Field and Description |
---|---|
protected CircuitBreakerService |
breakerService |
cache
deprecationLogger, indexSettings, logger
Modifier | Constructor and Description |
---|---|
protected |
AbstractIndexOrdinalsFieldData(IndexSettings indexSettings,
java.lang.String fieldName,
IndexFieldDataCache cache,
CircuitBreakerService breakerService,
double minFrequency,
double maxFrequency,
int minSegmentSize) |
Modifier and Type | Method and Description |
---|---|
protected AtomicOrdinalsFieldData |
empty(int maxDoc) |
protected org.apache.lucene.index.TermsEnum |
filter(org.apache.lucene.index.Terms terms,
org.apache.lucene.index.TermsEnum iterator,
org.apache.lucene.index.LeafReader reader) |
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
getIndexSettings, index
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getFieldName, load, loadDirect, sortField
index
protected final CircuitBreakerService breakerService
protected AbstractIndexOrdinalsFieldData(IndexSettings indexSettings, java.lang.String fieldName, IndexFieldDataCache cache, CircuitBreakerService breakerService, double minFrequency, double maxFrequency, int minSegmentSize)
public org.apache.lucene.index.MultiDocValues.OrdinalMap getOrdinalMap()
IndexOrdinalsFieldData
MultiDocValues.OrdinalMap
for this fielddata
or null if global ordinals are not needed (constant value or single segment).getOrdinalMap
in interface IndexOrdinalsFieldData
public IndexOrdinalsFieldData loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
IndexOrdinalsFieldData
IndexReader
,
potentially from a cache.loadGlobal
in interface IndexFieldData.Global<AtomicOrdinalsFieldData>
loadGlobal
in interface IndexOrdinalsFieldData
public IndexOrdinalsFieldData localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws java.lang.Exception
IndexOrdinalsFieldData
IndexReader
.localGlobalDirect
in interface IndexFieldData.Global<AtomicOrdinalsFieldData>
localGlobalDirect
in interface IndexOrdinalsFieldData
java.lang.Exception
protected AtomicOrdinalsFieldData empty(int maxDoc)
empty
in class AbstractIndexFieldData<AtomicOrdinalsFieldData>
maxDoc
- of the current readerprotected org.apache.lucene.index.TermsEnum filter(org.apache.lucene.index.Terms terms, org.apache.lucene.index.TermsEnum iterator, org.apache.lucene.index.LeafReader reader) throws java.io.IOException
java.io.IOException