Package org.apache.arrow.flatbuf
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
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__assign
(int _i, ByteBuffer _bb) void
__init
(int _i, ByteBuffer _bb) static void
addMode
(com.google.flatbuffers.FlatBufferBuilder builder, short mode) static void
addTypeIds
(com.google.flatbuffers.FlatBufferBuilder builder, int typeIdsOffset) static int
createTypeIdsVector
(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static int
createUnion
(com.google.flatbuffers.FlatBufferBuilder builder, short mode, int typeIdsOffset) static int
endUnion
(com.google.flatbuffers.FlatBufferBuilder builder) static Union
getRootAsUnion
(ByteBuffer _bb) static Union
getRootAsUnion
(ByteBuffer _bb, Union obj) short
mode()
static void
startTypeIdsVector
(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static void
startUnion
(com.google.flatbuffers.FlatBufferBuilder builder) int
typeIds
(int j) int
com.google.flatbuffers.IntVector
com.google.flatbuffers.IntVector
typeIdsVector
(com.google.flatbuffers.IntVector obj) static void
Methods 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)
-