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 TypeMethodDescriptionvoid
close()
Return a String representation of the values.Collection<org.apache.lucene.util.Accountable>
org.apache.lucene.index.SortedSetDocValues
Return the ordinals values for the current atomic reader.Returns field values for use in scripting.long
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.fielddata.LeafFieldData
getFormattedValues
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsed
in interfaceorg.apache.lucene.util.Accountable
-
getChildResources
- Specified by:
getChildResources
in interfaceorg.apache.lucene.util.Accountable
-
getOrdinalsValues
public org.apache.lucene.index.SortedSetDocValues getOrdinalsValues()Description copied from interface:LeafOrdinalsFieldData
Return the ordinals values for the current atomic reader.- Specified by:
getOrdinalsValues
in interfaceLeafOrdinalsFieldData
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.core.Releasable
-
getScriptValues
Description copied from interface:LeafFieldData
Returns field values for use in scripting.- Specified by:
getScriptValues
in interfaceLeafFieldData
-
getBytesValues
Description copied from interface:LeafFieldData
Return a String representation of the values.- Specified by:
getBytesValues
in interfaceLeafFieldData
-