Interface IndexFieldData<FD extends LeafFieldData>
- All Known Subinterfaces:
IndexFieldData.Global<FD>
,IndexGeoPointFieldData
,IndexOrdinalsFieldData
- All Known Implementing Classes:
AbstractIndexOrdinalsFieldData
,AbstractLatLonPointIndexFieldData
,AbstractLatLonPointIndexFieldData.LatLonPointIndexFieldData
,BinaryIndexFieldData
,BinaryScriptFieldData
,BooleanScriptFieldData
,BytesBinaryIndexFieldData
,ConstantIndexFieldData
,DateScriptFieldData
,DoubleScriptFieldData
,FlattenedFieldMapper.KeyedFlattenedFieldData
,GeoPointScriptFieldData
,GlobalOrdinalsIndexFieldData
,GlobalOrdinalsIndexFieldData.Consumer
,IndexHistogramFieldData
,IndexNumericFieldData
,IpScriptFieldData
,LongScriptFieldData
,PagedBytesIndexFieldData
,SortedNumericIndexFieldData
,SortedSetOrdinalsIndexFieldData
,StringBinaryIndexFieldData
,StringScriptFieldData
public interface IndexFieldData<FD extends LeafFieldData>
Thread-safe utility class that allows to get per-segment values via the
load(LeafReaderContext)
method.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IndexFieldData.Builder
static interface
IndexFieldData.Global<FD extends LeafFieldData>
static class
IndexFieldData.XFieldComparatorSource
-
Method Summary
Modifier and Type Method Description java.lang.String
getFieldName()
The field name.ValuesSourceType
getValuesSourceType()
The ValuesSourceType of the underlying data.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.BucketedSort
newBucketedSort(BigArrays bigArrays, java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra)
Build a sort implementation specialized for aggregations.org.apache.lucene.search.SortField
sortField(java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse)
Returns theSortField
to use for sorting.
-
Method Details
-
getFieldName
java.lang.String getFieldName()The field name. -
getValuesSourceType
ValuesSourceType getValuesSourceType()The ValuesSourceType of the underlying data. It's possible for fields that use the same IndexFieldData implementation to have different ValuesSourceTypes, such as in the case of Longs and Dates. -
load
Loads the atomic field data for the reader, possibly cached. -
loadDirect
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. -
newBucketedSort
BucketedSort newBucketedSort(BigArrays bigArrays, @Nullable java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra)Build a sort implementation specialized for aggregations.
-