Interface IndexFieldData<FD extends AtomicFieldData>
-
- All Superinterfaces:
IndexComponent
- All Known Subinterfaces:
IndexFieldData.Global<FD>
,IndexGeoPointFieldData
,IndexNumericFieldData
,IndexOrdinalsFieldData
- All Known Implementing Classes:
AbstractIndexFieldData
,AbstractIndexOrdinalsFieldData
,AbstractLatLonPointDVIndexFieldData
,AbstractLatLonPointDVIndexFieldData.LatLonPointDVIndexFieldData
,BinaryDVIndexFieldData
,BytesBinaryDVIndexFieldData
,ConstantIndexFieldData
,GlobalOrdinalsIndexFieldData
,PagedBytesIndexFieldData
,SortedNumericDVIndexFieldData
,SortedSetDVOrdinalsIndexFieldData
,UidIndexFieldData
public interface IndexFieldData<FD extends AtomicFieldData> extends IndexComponent
Thread-safe utility class that allows to get per-segment values via theload(LeafReaderContext)
method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IndexFieldData.Builder
static interface
IndexFieldData.Global<FD extends AtomicFieldData>
static class
IndexFieldData.XFieldComparatorSource
-
Method Summary
Modifier and Type Method Description void
clear()
Clears any resources associated with this field data.java.lang.String
getFieldName()
The field name.FD
load(org.apache.lucene.index.LeafReaderContext context)
Loads the atomic field data for the reader, possibly cached.FD
loadDirect(org.apache.lucene.index.LeafReaderContext context)
Loads directly the atomic field data for the reader, ignoring any caching involved.org.apache.lucene.search.SortField
sortField(java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)
Returns theSortField
to use for sorting.-
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
-
-
-
-
Method Detail
-
getFieldName
java.lang.String getFieldName()
The field name.
-
load
FD load(org.apache.lucene.index.LeafReaderContext context)
Loads the atomic field data for the reader, possibly cached.
-
loadDirect
FD loadDirect(org.apache.lucene.index.LeafReaderContext context) throws java.lang.Exception
Loads directly the atomic field data for the reader, ignoring any caching involved.- Throws:
java.lang.Exception
-
sortField
org.apache.lucene.search.SortField sortField(@Nullable java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)
Returns theSortField
to use for sorting.
-
clear
void clear()
Clears any resources associated with this field data.
-
-