public class ParentChildIndexFieldData extends AbstractIndexFieldData<AtomicParentChildFieldData> implements IndexParentChildFieldData
Modifier and Type | Class and Description |
---|---|
static class |
ParentChildIndexFieldData.Builder |
class |
ParentChildIndexFieldData.GlobalFieldData |
AbstractIndexFieldData.PerValueEstimator
IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
cache
deprecationLogger, indexSettings, logger
Constructor and Description |
---|
ParentChildIndexFieldData(IndexSettings indexSettings,
java.lang.String fieldName,
IndexFieldDataCache cache,
MapperService mapperService,
CircuitBreakerService breakerService) |
Modifier and Type | Method and Description |
---|---|
IndexFieldData.XFieldComparatorSource |
comparatorSource(java.lang.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,
java.lang.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, getFieldName
getIndexSettings, index
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getFieldName
index
public ParentChildIndexFieldData(IndexSettings indexSettings, java.lang.String fieldName, IndexFieldDataCache cache, MapperService mapperService, CircuitBreakerService breakerService)
public IndexFieldData.XFieldComparatorSource comparatorSource(@Nullable java.lang.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 java.lang.Exception
IndexFieldData
loadDirect
in interface IndexFieldData<AtomicParentChildFieldData>
java.lang.Exception
protected 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 java.lang.Exception
IndexParentChildFieldData
IndexReader
.localGlobalDirect
in interface IndexFieldData.Global<AtomicParentChildFieldData>
localGlobalDirect
in interface IndexParentChildFieldData
java.lang.Exception
public static org.apache.lucene.index.MultiDocValues.OrdinalMap getOrdinalMap(IndexParentChildFieldData indexParentChildFieldData, java.lang.String type)