public class ParentChildIndexFieldData extends AbstractIndexFieldData<AtomicParentChildFieldData> implements IndexParentChildFieldData, DocumentTypeListener
| Modifier and Type | Class and Description |
|---|---|
static class |
ParentChildIndexFieldData.Builder |
class |
ParentChildIndexFieldData.ParentChildEstimator
Estimator that wraps parent/child id field data by wrapping the data
in a RamAccountingTermsEnum.
|
AbstractIndexFieldData.PerValueEstimatorIndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSourcecache, fieldDataTypecomponentSettings, index, indexSettings, logger| Constructor and Description |
|---|
ParentChildIndexFieldData(Index index,
Settings indexSettings,
FieldMapper.Names fieldNames,
FieldDataType fieldDataType,
IndexFieldDataCache cache,
MapperService mapperService,
CircuitBreakerService breakerService) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRemove(DocumentMapper mapper)
Invoked just after an existing document type has been removed.
|
void |
beforeCreate(DocumentMapper mapper)
Invoked just before a new document type has been created.
|
IndexFieldData.XFieldComparatorSource |
comparatorSource(Object missingValue,
MultiValueMode sortMode,
IndexFieldData.XFieldComparatorSource.Nested nested)
Comparator used for sorting.
|
ParentChildAtomicFieldData |
loadDirect(org.apache.lucene.index.AtomicReaderContext context)
Loads directly the atomic field data for the reader, ignoring any caching involved.
|
IndexParentChildFieldData |
loadGlobal(org.apache.lucene.index.IndexReader indexReader)
Load a global view of the ordinals for the given
IndexReader,
potentially from a cache. |
IndexParentChildFieldData |
localGlobalDirect(org.apache.lucene.index.IndexReader indexReader)
Load a global view of the ordinals for the given
IndexReader. |
clear, clear, getFieldDataType, getFieldNames, loadindex, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, clear, getFieldDataType, getFieldNames, loadindexpublic ParentChildIndexFieldData(Index index, @IndexSettings Settings indexSettings, FieldMapper.Names fieldNames, FieldDataType fieldDataType, IndexFieldDataCache cache, MapperService mapperService, CircuitBreakerService breakerService)
public IndexFieldData.XFieldComparatorSource comparatorSource(@Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested)
IndexFieldDatacomparatorSource in interface IndexFieldData<AtomicParentChildFieldData>public ParentChildAtomicFieldData loadDirect(org.apache.lucene.index.AtomicReaderContext context) throws Exception
IndexFieldDataloadDirect in interface IndexFieldData<AtomicParentChildFieldData>Exceptionpublic void beforeCreate(DocumentMapper mapper)
DocumentTypeListenerbeforeCreate in interface DocumentTypeListenermapper - The new document mapper of the type being addedpublic void afterRemove(DocumentMapper mapper)
DocumentTypeListenerafterRemove in interface DocumentTypeListenermapper - The existing document mapper of the type being removedpublic IndexParentChildFieldData loadGlobal(org.apache.lucene.index.IndexReader indexReader)
IndexParentChildFieldDataIndexReader,
potentially from a cache.loadGlobal in interface IndexFieldData.Global<AtomicParentChildFieldData>loadGlobal in interface IndexParentChildFieldDatapublic IndexParentChildFieldData localGlobalDirect(org.apache.lucene.index.IndexReader indexReader) throws Exception
IndexParentChildFieldDataIndexReader.localGlobalDirect in interface IndexFieldData.Global<AtomicParentChildFieldData>localGlobalDirect in interface IndexParentChildFieldDataExceptionCopyright © 2009–2016. All rights reserved.