Class Union

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

public final class Union extends com.google.flatbuffers.Table
A union is a complex type with children in Field By default ids in the type vector refer to the offsets in the children optionally typeIds provides an indirection between the child offset and the type id for each child `typeIds[offset]` is the id used in the type vector
  • Constructor Details

    • Union

      public Union()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsUnion

      public static Union getRootAsUnion(ByteBuffer _bb)
    • getRootAsUnion

      public static Union getRootAsUnion(ByteBuffer _bb, Union obj)
    • __init

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

      public Union __assign(int _i, ByteBuffer _bb)
    • mode

      public short mode()
    • typeIds

      public int typeIds(int j)
    • typeIdsLength

      public int typeIdsLength()
    • typeIdsVector

      public com.google.flatbuffers.IntVector typeIdsVector()
    • typeIdsVector

      public com.google.flatbuffers.IntVector typeIdsVector(com.google.flatbuffers.IntVector obj)
    • typeIdsAsByteBuffer

      public ByteBuffer typeIdsAsByteBuffer()
    • typeIdsInByteBuffer

      public ByteBuffer typeIdsInByteBuffer(ByteBuffer _bb)
    • createUnion

      public static int createUnion(com.google.flatbuffers.FlatBufferBuilder builder, short mode, int typeIdsOffset)
    • startUnion

      public static void startUnion(com.google.flatbuffers.FlatBufferBuilder builder)
    • addMode

      public static void addMode(com.google.flatbuffers.FlatBufferBuilder builder, short mode)
    • addTypeIds

      public static void addTypeIds(com.google.flatbuffers.FlatBufferBuilder builder, int typeIdsOffset)
    • createTypeIdsVector

      public static int createTypeIdsVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data)
    • startTypeIdsVector

      public static void startTypeIdsVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems)
    • endUnion

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