Class ConstantIndexFieldData
- java.lang.Object
-
- org.elasticsearch.index.AbstractIndexComponent
-
- org.elasticsearch.index.fielddata.plain.AbstractIndexFieldData<AtomicOrdinalsFieldData>
-
- org.elasticsearch.index.fielddata.plain.AbstractIndexOrdinalsFieldData
-
- org.elasticsearch.index.fielddata.plain.ConstantIndexFieldData
-
- All Implemented Interfaces:
IndexFieldData<AtomicOrdinalsFieldData>,IndexFieldData.Global<AtomicOrdinalsFieldData>,IndexOrdinalsFieldData,IndexComponent
public class ConstantIndexFieldData extends AbstractIndexOrdinalsFieldData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConstantIndexFieldData.Builder-
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexFieldData
AbstractIndexFieldData.PerValueEstimator
-
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
Fields inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexFieldData
cache
-
Fields inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexOrdinalsFieldData
breakerService
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears any resources associated with this field data.java.lang.StringgetValue()AtomicOrdinalsFieldDataload(org.apache.lucene.index.LeafReaderContext context)Loads the atomic field data for the reader, possibly cached.AtomicOrdinalsFieldDataloadDirect(org.apache.lucene.index.LeafReaderContext context)Loads directly the atomic field data for the reader, ignoring any caching involved.IndexOrdinalsFieldDataloadGlobal(org.apache.lucene.index.DirectoryReader indexReader)Load a global view of the ordinals for the givenIndexReader, potentially from a cache.IndexOrdinalsFieldDatalocalGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader)Load a global view of the ordinals for the givenIndexReader.org.apache.lucene.search.SortFieldsortField(java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)Returns theSortFieldto used for sorting.-
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
-
Methods inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexFieldData
getFieldName
-
Methods inherited from class org.elasticsearch.index.fielddata.plain.AbstractIndexOrdinalsFieldData
empty, filter, getOrdinalMap
-
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
-
Methods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
getFieldName
-
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:IndexFieldDataClears any resources associated with this field data.- Specified by:
clearin interfaceIndexFieldData<AtomicOrdinalsFieldData>- Overrides:
clearin classAbstractIndexFieldData<AtomicOrdinalsFieldData>
-
load
public final AtomicOrdinalsFieldData load(org.apache.lucene.index.LeafReaderContext context)
Description copied from interface:IndexFieldDataLoads the atomic field data for the reader, possibly cached.- Specified by:
loadin interfaceIndexFieldData<AtomicOrdinalsFieldData>- Overrides:
loadin classAbstractIndexFieldData<AtomicOrdinalsFieldData>
-
loadDirect
public AtomicOrdinalsFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) throws java.lang.Exception
Description copied from interface:IndexFieldDataLoads directly the atomic field data for the reader, ignoring any caching involved.- Throws:
java.lang.Exception
-
sortField
public org.apache.lucene.search.SortField sortField(@Nullable java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)
Description copied from interface:IndexFieldDataReturns theSortFieldto used for sorting.
-
loadGlobal
public IndexOrdinalsFieldData loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
Description copied from interface:IndexOrdinalsFieldDataLoad a global view of the ordinals for the givenIndexReader, potentially from a cache.- Specified by:
loadGlobalin interfaceIndexFieldData.Global<AtomicOrdinalsFieldData>- Specified by:
loadGlobalin interfaceIndexOrdinalsFieldData- Overrides:
loadGlobalin classAbstractIndexOrdinalsFieldData
-
localGlobalDirect
public IndexOrdinalsFieldData localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws java.lang.Exception
Description copied from interface:IndexOrdinalsFieldDataLoad a global view of the ordinals for the givenIndexReader.- Specified by:
localGlobalDirectin interfaceIndexFieldData.Global<AtomicOrdinalsFieldData>- Specified by:
localGlobalDirectin interfaceIndexOrdinalsFieldData- Overrides:
localGlobalDirectin classAbstractIndexOrdinalsFieldData- Throws:
java.lang.Exception
-
getValue
public java.lang.String getValue()
-
-