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 SummaryNested Classes
- 
Field SummaryFields inherited from class com.google.flatbuffers.Tablebb, bb_pos
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
Unionpublic Union()
 
- 
- 
Method Details- 
ValidateVersionpublic static void ValidateVersion()
- 
getRootAsUnion
- 
getRootAsUnion
- 
__init
- 
__assign
- 
modepublic short mode()
- 
typeIdspublic int typeIds(int j) 
- 
typeIdsLengthpublic int typeIdsLength()
- 
typeIdsVectorpublic com.google.flatbuffers.IntVector typeIdsVector()
- 
typeIdsVectorpublic com.google.flatbuffers.IntVector typeIdsVector(com.google.flatbuffers.IntVector obj) 
- 
typeIdsAsByteBuffer
- 
typeIdsInByteBuffer
- 
createUnionpublic static int createUnion(com.google.flatbuffers.FlatBufferBuilder builder, short mode, int typeIdsOffset) 
- 
startUnionpublic static void startUnion(com.google.flatbuffers.FlatBufferBuilder builder) 
- 
addModepublic static void addMode(com.google.flatbuffers.FlatBufferBuilder builder, short mode) 
- 
addTypeIdspublic static void addTypeIds(com.google.flatbuffers.FlatBufferBuilder builder, int typeIdsOffset) 
- 
createTypeIdsVectorpublic static int createTypeIdsVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) 
- 
startTypeIdsVectorpublic static void startTypeIdsVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) 
- 
endUnionpublic static int endUnion(com.google.flatbuffers.FlatBufferBuilder builder) 
 
-