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 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 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.booleannullable()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- 
Fieldpublic Field()
 
- 
- 
Method Details- 
ValidateVersionpublic static void ValidateVersion()
- 
getRootAsField
- 
getRootAsField
- 
__init
- 
__assign
- 
nameName is not required, in i.e. a List
- 
nameAsByteBuffer
- 
nameInByteBuffer
- 
nullablepublic boolean nullable()Whether or not this field can contain nulls. Should be true in general.
- 
typeTypepublic byte typeType()
- 
typepublic com.google.flatbuffers.Table type(com.google.flatbuffers.Table obj) This is the type of the decoded value if the field is dictionary encoded.
- 
dictionaryPresent only if the field is dictionary encoded.
- 
dictionary
- 
childrenchildren apply only to nested data types like Struct, List and Union. For primitive types children will have length 0.
- 
children
- 
childrenLengthpublic int childrenLength()
- 
childrenVector
- 
childrenVector
- 
customMetadataUser-defined metadata
- 
customMetadata
- 
customMetadataLengthpublic int customMetadataLength()
- 
customMetadataVector
- 
customMetadataVector
- 
createFieldpublic static int createField(com.google.flatbuffers.FlatBufferBuilder builder, int nameOffset, boolean nullable, byte typeType, int typeOffset, int dictionaryOffset, int childrenOffset, int customMetadataOffset) 
- 
startFieldpublic static void startField(com.google.flatbuffers.FlatBufferBuilder builder) 
- 
addNamepublic static void addName(com.google.flatbuffers.FlatBufferBuilder builder, int nameOffset) 
- 
addNullablepublic static void addNullable(com.google.flatbuffers.FlatBufferBuilder builder, boolean nullable) 
- 
addTypeTypepublic static void addTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) 
- 
addTypepublic static void addType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) 
- 
addDictionarypublic static void addDictionary(com.google.flatbuffers.FlatBufferBuilder builder, int dictionaryOffset) 
- 
addChildrenpublic static void addChildren(com.google.flatbuffers.FlatBufferBuilder builder, int childrenOffset) 
- 
createChildrenVectorpublic static int createChildrenVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) 
- 
startChildrenVectorpublic static void startChildrenVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) 
- 
addCustomMetadatapublic static void addCustomMetadata(com.google.flatbuffers.FlatBufferBuilder builder, int customMetadataOffset) 
- 
createCustomMetadataVectorpublic static int createCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) 
- 
startCustomMetadataVectorpublic static void startCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) 
- 
endFieldpublic static int endField(com.google.flatbuffers.FlatBufferBuilder builder) 
 
-