Class KeyedFlattenedLeafFieldData

All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.util.Accountable, Releasable, LeafFieldData, LeafOrdinalsFieldData

public class KeyedFlattenedLeafFieldData extends 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.
  • Method Details

    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable
    • getChildResources

      public Collection<org.apache.lucene.util.Accountable> getChildResources()
      Specified by:
      getChildResources in interface org.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 interface LeafOrdinalsFieldData
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Releasable
    • getScriptValues

      public ScriptDocValues<?> getScriptValues()
      Description copied from interface: LeafFieldData
      Returns field values for use in scripting.
      Specified by:
      getScriptValues in interface LeafFieldData
    • getBytesValues

      public SortedBinaryDocValues getBytesValues()
      Description copied from interface: LeafFieldData
      Return a String representation of the values.
      Specified by:
      getBytesValues in interface LeafFieldData