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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__assign(int _i, ByteBuffer _bb) void__init(int _i, ByteBuffer _bb) static voidaddMode(com.google.flatbuffers.FlatBufferBuilder builder, short mode) static voidaddTypeIds(com.google.flatbuffers.FlatBufferBuilder builder, int typeIdsOffset) static intcreateTypeIdsVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static intcreateUnion(com.google.flatbuffers.FlatBufferBuilder builder, short mode, int typeIdsOffset) static intendUnion(com.google.flatbuffers.FlatBufferBuilder builder) static UniongetRootAsUnion(ByteBuffer _bb) static UniongetRootAsUnion(ByteBuffer _bb, Union obj) shortmode()static voidstartTypeIdsVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartUnion(com.google.flatbuffers.FlatBufferBuilder builder) inttypeIds(int j) intcom.google.flatbuffers.IntVectorcom.google.flatbuffers.IntVectortypeIdsVector(com.google.flatbuffers.IntVector obj) static voidMethods inherited from class com.google.flatbuffers.Table
__has_identifier, __indirect, __indirect, __offset, __offset, __reset, __reset, __string, __string, __union, __union, __vector, __vector_as_bytebuffer, __vector_in_bytebuffer, __vector_len, compareStrings, compareStrings, getByteBuffer, keysCompare, sortTables
-
Constructor Details
-
Union
public Union()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsUnion
-
getRootAsUnion
-
__init
-
__assign
-
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
-
typeIdsInByteBuffer
-
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)
-