Class BytesBinaryIndexFieldData
java.lang.Object
org.elasticsearch.index.fielddata.plain.BytesBinaryIndexFieldData
- All Implemented Interfaces:
IndexFieldData<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
public class BytesBinaryIndexFieldData extends java.lang.Object implements IndexFieldData<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BytesBinaryIndexFieldData.Builder
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
fieldName
protected ValuesSourceType
valuesSourceType
-
Constructor Summary
Constructors Constructor Description BytesBinaryIndexFieldData(java.lang.String fieldName, ValuesSourceType valuesSourceType)
-
Method Summary
Modifier and Type Method Description java.lang.String
getFieldName()
The field name.ValuesSourceType
getValuesSourceType()
The ValuesSourceType of the underlying data.org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData
load(org.apache.lucene.index.LeafReaderContext context)
Loads the atomic field data for the reader, possibly cached.org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
fieldName
protected final java.lang.String fieldName -
valuesSourceType
-
-
Constructor Details
-
BytesBinaryIndexFieldData
-
-
Method Details
-
getFieldName
public final java.lang.String getFieldName()Description copied from interface:IndexFieldData
The field name.- Specified by:
getFieldName
in interfaceIndexFieldData<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
-
getValuesSourceType
Description copied from interface:IndexFieldData
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.- Specified by:
getValuesSourceType
in interfaceIndexFieldData<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
-
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 use for sorting.- Specified by:
sortField
in interfaceIndexFieldData<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
-
newBucketedSort
public BucketedSort newBucketedSort(BigArrays bigArrays, java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra)Description copied from interface:IndexFieldData
Build a sort implementation specialized for aggregations.- Specified by:
newBucketedSort
in interfaceIndexFieldData<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
-
load
public org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData 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<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
-
loadDirect
public org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) throws java.lang.ExceptionDescription copied from interface:IndexFieldData
Loads directly the atomic field data for the reader, ignoring any caching involved.- Specified by:
loadDirect
in interfaceIndexFieldData<org.elasticsearch.index.fielddata.plain.BytesBinaryDVLeafFieldData>
- Throws:
java.lang.Exception
-