java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.Field
public final class Field
extends com.google.flatbuffers.Table
----------------------------------------------------------------------
A field represents a named column in a record / row batch or child of a
nested type.
-
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
addChildren
(com.google.flatbuffers.FlatBufferBuilder builder, int childrenOffset) static void
addCustomMetadata
(com.google.flatbuffers.FlatBufferBuilder builder, int customMetadataOffset) static void
addDictionary
(com.google.flatbuffers.FlatBufferBuilder builder, int dictionaryOffset) static void
addName
(com.google.flatbuffers.FlatBufferBuilder builder, int nameOffset) static void
addNullable
(com.google.flatbuffers.FlatBufferBuilder builder, boolean nullable) static void
addType
(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) static void
addTypeType
(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) children
(int j) children apply only to nested data types like Struct, List and Union.int
static int
createChildrenVector
(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static int
createCustomMetadataVector
(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static int
createField
(com.google.flatbuffers.FlatBufferBuilder builder, int nameOffset, boolean nullable, byte typeType, int typeOffset, int dictionaryOffset, int childrenOffset, int customMetadataOffset) customMetadata
(int j) User-defined metadatacustomMetadata
(KeyValue obj, int j) int
Present only if the field is dictionary encoded.static int
endField
(com.google.flatbuffers.FlatBufferBuilder builder) static Field
getRootAsField
(ByteBuffer _bb) static Field
getRootAsField
(ByteBuffer _bb, Field obj) name()
Name is not required, in i.e.boolean
nullable()
Whether or not this field can contain nulls.static void
startChildrenVector
(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static void
startCustomMetadataVector
(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static void
startField
(com.google.flatbuffers.FlatBufferBuilder builder) com.google.flatbuffers.Table
type
(com.google.flatbuffers.Table obj) This is the type of the decoded value if the field is dictionary encoded.byte
typeType()
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
-
Field
public Field()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsField
-
getRootAsField
-
__init
-
__assign
-
name
Name is not required, in i.e. a List -
nameAsByteBuffer
-
nameInByteBuffer
-
nullable
public boolean nullable()Whether or not this field can contain nulls. Should be true in general. -
typeType
public byte typeType() -
type
public com.google.flatbuffers.Table type(com.google.flatbuffers.Table obj) This is the type of the decoded value if the field is dictionary encoded. -
dictionary
Present only if the field is dictionary encoded. -
dictionary
-
children
children apply only to nested data types like Struct, List and Union. For primitive types children will have length 0. -
children
-
childrenLength
public int childrenLength() -
childrenVector
-
childrenVector
-
customMetadata
User-defined metadata -
customMetadata
-
customMetadataLength
public int customMetadataLength() -
customMetadataVector
-
customMetadataVector
-
createField
public static int createField(com.google.flatbuffers.FlatBufferBuilder builder, int nameOffset, boolean nullable, byte typeType, int typeOffset, int dictionaryOffset, int childrenOffset, int customMetadataOffset) -
startField
public static void startField(com.google.flatbuffers.FlatBufferBuilder builder) -
addName
public static void addName(com.google.flatbuffers.FlatBufferBuilder builder, int nameOffset) -
addNullable
public static void addNullable(com.google.flatbuffers.FlatBufferBuilder builder, boolean nullable) -
addTypeType
public static void addTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) -
addType
public static void addType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) -
addDictionary
public static void addDictionary(com.google.flatbuffers.FlatBufferBuilder builder, int dictionaryOffset) -
addChildren
public static void addChildren(com.google.flatbuffers.FlatBufferBuilder builder, int childrenOffset) -
createChildrenVector
public static int createChildrenVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) -
startChildrenVector
public static void startChildrenVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) -
addCustomMetadata
public static void addCustomMetadata(com.google.flatbuffers.FlatBufferBuilder builder, int customMetadataOffset) -
createCustomMetadataVector
public static int createCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) -
startCustomMetadataVector
public static void startCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) -
endField
public static int endField(com.google.flatbuffers.FlatBufferBuilder builder)
-