Module org.elasticsearch.server
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,- SortedDoublesIndexFieldData,- SortedNumericIndexFieldData,- SortedOrdinalsIndexFieldData,- SortedSetOrdinalsIndexFieldData,- StringBinaryIndexFieldData,- StringScriptFieldData,- VectorIndexFieldData
public interface IndexFieldData<FD extends LeafFieldData>
Thread-safe utility class that allows to get per-segment values via the
 
load(LeafReaderContext) method.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceIndexFieldData.Global<FD extends LeafFieldData>static class
- 
Method SummaryModifier and TypeMethodDescriptionThe field name.The ValuesSourceType of the underlying data.load(org.apache.lucene.index.LeafReaderContext context) Loads the atomic field data for the reader, possibly cached.loadDirect(org.apache.lucene.index.LeafReaderContext context) Loads directly the atomic field data for the reader, ignoring any caching involved.newBucketedSort(BigArrays bigArrays, 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.SortFieldsortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Returns theSortFieldto use for sorting.
- 
Method Details- 
getFieldNameString getFieldName()The field name.
- 
getValuesSourceTypeValuesSourceType 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.
- 
loadLoads the atomic field data for the reader, possibly cached.
- 
loadDirectLoads directly the atomic field data for the reader, ignoring any caching involved.- Throws:
- Exception
 
- 
sortFieldorg.apache.lucene.search.SortField sortField(@Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Returns theSortFieldto use for sorting.
- 
newBucketedSortBucketedSort newBucketedSort(BigArrays bigArrays, @Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra) Build a sort implementation specialized for aggregations.
 
-