public abstract class GlobalOrdinalsIndexFieldData extends AbstractIndexComponent implements IndexOrdinalsFieldData, org.apache.lucene.util.Accountable
IndexFieldData base class for concrete global ordinals implementations.IndexFieldData.Builder, IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSourcedeprecationLogger, index, indexSettings, logger| Modifier | Constructor and Description |
|---|---|
protected |
GlobalOrdinalsIndexFieldData(Index index,
Settings settings,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
long memorySizeInBytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears any resources associated with this field data.
|
IndexFieldData.XFieldComparatorSource |
comparatorSource(Object missingValue,
MultiValueMode sortMode,
IndexFieldData.XFieldComparatorSource.Nested nested)
Comparator used for sorting.
|
Collection<org.apache.lucene.util.Accountable> |
getChildResources() |
FieldDataType |
getFieldDataType()
The field data type.
|
MappedFieldType.Names |
getFieldNames()
The field name.
|
AtomicOrdinalsFieldData |
loadDirect(org.apache.lucene.index.LeafReaderContext context)
Loads directly the atomic field data for the reader, ignoring any caching involved.
|
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. |
long |
ramBytesUsed() |
index, indexSettingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadindexprotected GlobalOrdinalsIndexFieldData(Index index, Settings settings, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, long memorySizeInBytes)
public AtomicOrdinalsFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) throws Exception
IndexFieldDataloadDirect in interface IndexFieldData<AtomicOrdinalsFieldData>Exceptionpublic IndexOrdinalsFieldData loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
IndexOrdinalsFieldDataIndexReader,
potentially from a cache.loadGlobal in interface IndexFieldData.Global<AtomicOrdinalsFieldData>loadGlobal in interface IndexOrdinalsFieldDatapublic IndexOrdinalsFieldData localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws Exception
IndexOrdinalsFieldDataIndexReader.localGlobalDirect in interface IndexFieldData.Global<AtomicOrdinalsFieldData>localGlobalDirect in interface IndexOrdinalsFieldDataExceptionpublic MappedFieldType.Names getFieldNames()
IndexFieldDatagetFieldNames in interface IndexFieldData<AtomicOrdinalsFieldData>public FieldDataType getFieldDataType()
IndexFieldDatagetFieldDataType in interface IndexFieldData<AtomicOrdinalsFieldData>public IndexFieldData.XFieldComparatorSource comparatorSource(@Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested)
IndexFieldDatacomparatorSource in interface IndexFieldData<AtomicOrdinalsFieldData>public void clear()
IndexFieldDataclear in interface IndexFieldData<AtomicOrdinalsFieldData>public long ramBytesUsed()
ramBytesUsed in interface org.apache.lucene.util.Accountablepublic Collection<org.apache.lucene.util.Accountable> getChildResources()
getChildResources in interface org.apache.lucene.util.AccountableCopyright © 2009–2017. All rights reserved.