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.XFieldComparatorSource
deprecationLogger, 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, indexSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load
index
protected GlobalOrdinalsIndexFieldData(Index index, Settings settings, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, long memorySizeInBytes)
public AtomicOrdinalsFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) throws Exception
IndexFieldData
loadDirect
in interface IndexFieldData<AtomicOrdinalsFieldData>
Exception
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 Exception
IndexOrdinalsFieldData
IndexReader
.localGlobalDirect
in interface IndexFieldData.Global<AtomicOrdinalsFieldData>
localGlobalDirect
in interface IndexOrdinalsFieldData
Exception
public MappedFieldType.Names getFieldNames()
IndexFieldData
getFieldNames
in interface IndexFieldData<AtomicOrdinalsFieldData>
public FieldDataType getFieldDataType()
IndexFieldData
getFieldDataType
in interface IndexFieldData<AtomicOrdinalsFieldData>
public IndexFieldData.XFieldComparatorSource comparatorSource(@Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested)
IndexFieldData
comparatorSource
in interface IndexFieldData<AtomicOrdinalsFieldData>
public void clear()
IndexFieldData
clear
in interface IndexFieldData<AtomicOrdinalsFieldData>
public long ramBytesUsed()
ramBytesUsed
in interface org.apache.lucene.util.Accountable
public Collection<org.apache.lucene.util.Accountable> getChildResources()
getChildResources
in interface org.apache.lucene.util.Accountable
Copyright © 2009–2016. All rights reserved.