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.PerValueEstimator
IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
cache, fieldDataType
componentSettings, 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, load
index, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, clear, getFieldDataType, getFieldNames, load
index
public 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)
IndexFieldData
comparatorSource
in interface IndexFieldData<AtomicParentChildFieldData>
public ParentChildAtomicFieldData loadDirect(org.apache.lucene.index.AtomicReaderContext context) throws Exception
IndexFieldData
loadDirect
in interface IndexFieldData<AtomicParentChildFieldData>
Exception
public void beforeCreate(DocumentMapper mapper)
DocumentTypeListener
beforeCreate
in interface DocumentTypeListener
mapper
- The new document mapper of the type being addedpublic void afterRemove(DocumentMapper mapper)
DocumentTypeListener
afterRemove
in interface DocumentTypeListener
mapper
- The existing document mapper of the type being removedpublic IndexParentChildFieldData loadGlobal(org.apache.lucene.index.IndexReader indexReader)
IndexParentChildFieldData
IndexReader
,
potentially from a cache.loadGlobal
in interface IndexFieldData.Global<AtomicParentChildFieldData>
loadGlobal
in interface IndexParentChildFieldData
public IndexParentChildFieldData localGlobalDirect(org.apache.lucene.index.IndexReader indexReader) throws Exception
IndexParentChildFieldData
IndexReader
.localGlobalDirect
in interface IndexFieldData.Global<AtomicParentChildFieldData>
localGlobalDirect
in interface IndexParentChildFieldData
Exception
Copyright © 2009–2015. All rights reserved.