Class KeyedFlattenedLeafFieldData
java.lang.Object
org.elasticsearch.index.mapper.flattened.KeyedFlattenedLeafFieldData
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.apache.lucene.util.Accountable
,org.elasticsearch.common.lease.Releasable
,LeafFieldData
,LeafOrdinalsFieldData
public class KeyedFlattenedLeafFieldData extends java.lang.Object implements 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 Type Method Description void
close()
SortedBinaryDocValues
getBytesValues()
Return a String representation of the values.java.util.Collection<org.apache.lucene.util.Accountable>
getChildResources()
org.apache.lucene.index.SortedSetDocValues
getOrdinalsValues()
Return the ordinals values for the current atomic reader.ScriptDocValues<?>
getScriptValues()
Returns field values for use in scripting.long
ramBytesUsed()
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
public java.util.Collection<org.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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceorg.elasticsearch.common.lease.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
-