public class ParentChildIndexFieldData extends AbstractIndexFieldData<AtomicParentChildFieldData> implements IndexParentChildFieldData, DocumentTypeListener
| Modifier and Type | Class and Description |
|---|---|
static class |
ParentChildIndexFieldData.Builder |
class |
ParentChildIndexFieldData.GlobalFieldData |
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, fieldDataTypedeprecationLogger, index, indexSettings, logger| Constructor and Description |
|---|
ParentChildIndexFieldData(Index index,
Settings indexSettings,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
IndexFieldDataCache cache,
MapperService mapperService,
CircuitBreakerService breakerService) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected AtomicParentChildFieldData |
empty(int maxDoc) |
static org.apache.lucene.index.MultiDocValues.OrdinalMap |
getOrdinalMap(IndexParentChildFieldData indexParentChildFieldData,
String type)
Returns the global ordinal map for the specified type
|
AtomicParentChildFieldData |
load(org.apache.lucene.index.LeafReaderContext context)
Loads the atomic field data for the reader, possibly cached.
|
org.elasticsearch.index.fielddata.plain.AbstractAtomicParentChildFieldData |
loadDirect(org.apache.lucene.index.LeafReaderContext context)
Loads directly the atomic field data for the reader, ignoring any caching involved.
|
IndexParentChildFieldData |
loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
Load a global view of the ordinals for the given
IndexReader,
potentially from a cache. |
IndexParentChildFieldData |
localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader)
Load a global view of the ordinals for the given
IndexReader. |
clear, getFieldDataType, getFieldNamesindex, indexSettingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getFieldDataType, getFieldNamesindexpublic ParentChildIndexFieldData(Index index, Settings indexSettings, MappedFieldType.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 AtomicParentChildFieldData load(org.apache.lucene.index.LeafReaderContext context)
IndexFieldDataload in interface IndexFieldData<AtomicParentChildFieldData>load in class AbstractIndexFieldData<AtomicParentChildFieldData>public org.elasticsearch.index.fielddata.plain.AbstractAtomicParentChildFieldData loadDirect(org.apache.lucene.index.LeafReaderContext 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 addedprotected AtomicParentChildFieldData empty(int maxDoc)
empty in class AbstractIndexFieldData<AtomicParentChildFieldData>maxDoc - of the current readerpublic IndexParentChildFieldData loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
IndexParentChildFieldDataIndexReader,
potentially from a cache.loadGlobal in interface IndexFieldData.Global<AtomicParentChildFieldData>loadGlobal in interface IndexParentChildFieldDatapublic IndexParentChildFieldData localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws Exception
IndexParentChildFieldDataIndexReader.localGlobalDirect in interface IndexFieldData.Global<AtomicParentChildFieldData>localGlobalDirect in interface IndexParentChildFieldDataExceptionpublic static org.apache.lucene.index.MultiDocValues.OrdinalMap getOrdinalMap(IndexParentChildFieldData indexParentChildFieldData, String type)
Copyright © 2009–2016. All rights reserved.