Class DictionaryBatch


public final class DictionaryBatch extends
For sending dictionary encoding information. Any Field can be dictionary-encoded, but in this case none of its children may be dictionary-encoded. There is one vector / column per dictionary, but that vector / column may be spread across multiple dictionary batches by using the isDelta flag
  • Constructor Details

    • DictionaryBatch

      public DictionaryBatch()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsDictionaryBatch

      public static DictionaryBatch getRootAsDictionaryBatch(ByteBuffer _bb)
    • getRootAsDictionaryBatch

      public static DictionaryBatch getRootAsDictionaryBatch(ByteBuffer _bb, DictionaryBatch obj)
    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public DictionaryBatch __assign(int _i, ByteBuffer _bb)
    • id

      public long id()
    • data

      public RecordBatch data()
    • data

      public RecordBatch data(RecordBatch obj)
    • isDelta

      public boolean isDelta()
      If isDelta is true the values in the dictionary are to be appended to a dictionary with the indicated id. If isDelta is false this dictionary should replace the existing dictionary.
    • createDictionaryBatch

      public static int createDictionaryBatch( builder, long id, int dataOffset, boolean isDelta)
    • startDictionaryBatch

      public static void startDictionaryBatch( builder)
    • addId

      public static void addId( builder, long id)
    • addData

      public static void addData( builder, int dataOffset)
    • addIsDelta

      public static void addIsDelta( builder, boolean isDelta)
    • endDictionaryBatch

      public static int endDictionaryBatch( builder)