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
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 voidaddChildren(com.google.flatbuffers.FlatBufferBuilder builder, int childrenOffset) static voidaddCustomMetadata(com.google.flatbuffers.FlatBufferBuilder builder, int customMetadataOffset) static voidaddDictionary(com.google.flatbuffers.FlatBufferBuilder builder, int dictionaryOffset) static voidaddName(com.google.flatbuffers.FlatBufferBuilder builder, int nameOffset) static voidaddNullable(com.google.flatbuffers.FlatBufferBuilder builder, boolean nullable) static voidaddType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) static voidaddTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) children(int j) children apply only to nested data types like Struct, List and Union.intstatic intcreateChildrenVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static intcreateCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static intcreateField(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) intPresent only if the field is dictionary encoded.static intendField(com.google.flatbuffers.FlatBufferBuilder builder) static FieldgetRootAsField(ByteBuffer _bb) static FieldgetRootAsField(ByteBuffer _bb, Field obj) name()Name is not required, in i.e. a Listbooleannullable()Whether or not this field can contain nulls.static voidstartChildrenVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartField(com.google.flatbuffers.FlatBufferBuilder builder) com.google.flatbuffers.Tabletype(com.google.flatbuffers.Table obj) This is the type of the decoded value if the field is dictionary encoded.bytetypeType()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
-
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)
-