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.PerValueEstimator
IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
cache, fieldDataType
deprecationLogger, 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, getFieldNames
index, indexSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getFieldDataType, getFieldNames
index
public 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)
IndexFieldData
comparatorSource
in interface IndexFieldData<AtomicParentChildFieldData>
public AtomicParentChildFieldData load(org.apache.lucene.index.LeafReaderContext context)
IndexFieldData
load
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
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 addedprotected AtomicParentChildFieldData empty(int maxDoc)
empty
in class AbstractIndexFieldData<AtomicParentChildFieldData>
maxDoc
- of the current readerpublic IndexParentChildFieldData loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
IndexParentChildFieldData
IndexReader
,
potentially from a cache.loadGlobal
in interface IndexFieldData.Global<AtomicParentChildFieldData>
loadGlobal
in interface IndexParentChildFieldData
public IndexParentChildFieldData localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws Exception
IndexParentChildFieldData
IndexReader
.localGlobalDirect
in interface IndexFieldData.Global<AtomicParentChildFieldData>
localGlobalDirect
in interface IndexParentChildFieldData
Exception
public static org.apache.lucene.index.MultiDocValues.OrdinalMap getOrdinalMap(IndexParentChildFieldData indexParentChildFieldData, String type)
Copyright © 2009–2016. All rights reserved.