Class DictionaryBatch

java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.DictionaryBatch

public final class DictionaryBatch extends com.google.flatbuffers.Table
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(com.google.flatbuffers.FlatBufferBuilder builder, long id, int dataOffset, boolean isDelta)
    • startDictionaryBatch

      public static void startDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder)
    • addId

      public static void addId(com.google.flatbuffers.FlatBufferBuilder builder, long id)
    • addData

      public static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset)
    • addIsDelta

      public static void addIsDelta(com.google.flatbuffers.FlatBufferBuilder builder, boolean isDelta)
    • endDictionaryBatch

      public static int endDictionaryBatch(com.google.flatbuffers.FlatBufferBuilder builder)