Class SortedSetDVOrdinalsIndexFieldData
- java.lang.Object
-
- org.elasticsearch.index.fielddata.plain.DocValuesIndexFieldData
-
- org.elasticsearch.index.fielddata.plain.SortedSetDVOrdinalsIndexFieldData
-
- All Implemented Interfaces:
IndexFieldData<AtomicOrdinalsFieldData>
,IndexFieldData.Global<AtomicOrdinalsFieldData>
,IndexOrdinalsFieldData
,IndexComponent
public class SortedSetDVOrdinalsIndexFieldData extends DocValuesIndexFieldData implements IndexOrdinalsFieldData
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.plain.DocValuesIndexFieldData
DocValuesIndexFieldData.Builder
-
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Builder, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.fielddata.plain.DocValuesIndexFieldData
fieldName, index
-
-
Constructor Summary
Constructors Constructor Description SortedSetDVOrdinalsIndexFieldData(IndexSettings indexSettings, IndexFieldDataCache cache, java.lang.String fieldName, CircuitBreakerService breakerService, java.util.function.Function<org.apache.lucene.index.SortedSetDocValues,ScriptDocValues<?>> scriptFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.index.OrdinalMap
getOrdinalMap()
Returns the underlyingOrdinalMap
for this fielddata or null if global ordinals are not needed (constant value or single segment).AtomicOrdinalsFieldData
load(org.apache.lucene.index.LeafReaderContext context)
Loads the atomic field data for the reader, possibly cached.AtomicOrdinalsFieldData
loadDirect(org.apache.lucene.index.LeafReaderContext context)
Loads directly the atomic field data for the reader, ignoring any caching involved.IndexOrdinalsFieldData
loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
Load a global view of the ordinals for the givenIndexReader
, potentially from a cache.IndexOrdinalsFieldData
localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader)
Load a global view of the ordinals for the givenIndexReader
.org.apache.lucene.search.SortField
sortField(java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)
Returns theSortField
to used for sorting.-
Methods inherited from class org.elasticsearch.index.fielddata.plain.DocValuesIndexFieldData
clear, clear, getFieldName, index
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
-
Methods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
clear, getFieldName
-
-
-
-
Constructor Detail
-
SortedSetDVOrdinalsIndexFieldData
public SortedSetDVOrdinalsIndexFieldData(IndexSettings indexSettings, IndexFieldDataCache cache, java.lang.String fieldName, CircuitBreakerService breakerService, java.util.function.Function<org.apache.lucene.index.SortedSetDocValues,ScriptDocValues<?>> scriptFunction)
-
-
Method Detail
-
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:IndexFieldData
Returns theSortField
to used for sorting.- Specified by:
sortField
in interfaceIndexFieldData<AtomicOrdinalsFieldData>
-
load
public AtomicOrdinalsFieldData load(org.apache.lucene.index.LeafReaderContext context)
Description copied from interface:IndexFieldData
Loads the atomic field data for the reader, possibly cached.- Specified by:
load
in interfaceIndexFieldData<AtomicOrdinalsFieldData>
-
loadDirect
public AtomicOrdinalsFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) throws java.lang.Exception
Description copied from interface:IndexFieldData
Loads directly the atomic field data for the reader, ignoring any caching involved.- Specified by:
loadDirect
in interfaceIndexFieldData<AtomicOrdinalsFieldData>
- Throws:
java.lang.Exception
-
loadGlobal
public IndexOrdinalsFieldData loadGlobal(org.apache.lucene.index.DirectoryReader indexReader)
Description copied from interface:IndexOrdinalsFieldData
Load a global view of the ordinals for the givenIndexReader
, potentially from a cache.- Specified by:
loadGlobal
in interfaceIndexFieldData.Global<AtomicOrdinalsFieldData>
- Specified by:
loadGlobal
in interfaceIndexOrdinalsFieldData
-
localGlobalDirect
public IndexOrdinalsFieldData localGlobalDirect(org.apache.lucene.index.DirectoryReader indexReader) throws java.lang.Exception
Description copied from interface:IndexOrdinalsFieldData
Load a global view of the ordinals for the givenIndexReader
.- Specified by:
localGlobalDirect
in interfaceIndexFieldData.Global<AtomicOrdinalsFieldData>
- Specified by:
localGlobalDirect
in interfaceIndexOrdinalsFieldData
- Throws:
java.lang.Exception
-
getOrdinalMap
public org.apache.lucene.index.OrdinalMap getOrdinalMap()
Description copied from interface:IndexOrdinalsFieldData
Returns the underlyingOrdinalMap
for this fielddata or null if global ordinals are not needed (constant value or single segment).- Specified by:
getOrdinalMap
in interfaceIndexOrdinalsFieldData
-
-