Class KeyedFlattenedLeafFieldData
java.lang.Object
org.elasticsearch.index.mapper.flattened.KeyedFlattenedLeafFieldData
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable,org.elasticsearch.core.Releasable,LeafFieldData,LeafOrdinalsFieldData
The atomic field data implementation for
FlattenedFieldMapper.KeyedFlattenedFieldType.
This class wraps the field data that is built directly on the keyed flattened field,
and filters out values whose prefix doesn't match the requested key.
In order to support all usage patterns, the delegate's ordinal values are shifted
to range from 0 to the number of total values.-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Return a String representation of the values.Collection<org.apache.lucene.util.Accountable>org.apache.lucene.index.SortedSetDocValuesReturn the ordinals values for the current atomic reader.Returns field values for use in scripting.longMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.fielddata.LeafFieldData
getFormattedValues
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
getChildResources
- Specified by:
getChildResourcesin interfaceorg.apache.lucene.util.Accountable
-
getOrdinalsValues
public org.apache.lucene.index.SortedSetDocValues getOrdinalsValues()Description copied from interface:LeafOrdinalsFieldDataReturn the ordinals values for the current atomic reader.- Specified by:
getOrdinalsValuesin interfaceLeafOrdinalsFieldData
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
getScriptValues
Description copied from interface:LeafFieldDataReturns field values for use in scripting.- Specified by:
getScriptValuesin interfaceLeafFieldData
-
getBytesValues
Description copied from interface:LeafFieldDataReturn a String representation of the values.- Specified by:
getBytesValuesin interfaceLeafFieldData
-