Class Field
java.lang.Object
org.apache.arrow.vector.types.pojo.Field
A POJO abstraction for the Flatbuffer description of Vector Type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Field
convertField
(Field field) Constructs a new instance from a flatbuffer representation of the field.createVector
(BufferAllocator allocator) Construct a new vector of this type using the given allocator.boolean
int
getField
(com.google.flatbuffers.FlatBufferBuilder builder) Puts this object intobuilder
and returns the length of the serialized flatbuffer.getName()
getType()
int
hashCode()
boolean
static Field
notNullable
(String name, ArrowType type) static Field
static Field
nullablePrimitive
(String name, ArrowType.PrimitiveType type) toString()
-
Constructor Details
-
Field
Constructs a new Field object.- Parameters:
name
- name of the fieldfieldType
- type of the fieldchildren
- child fields, if any
-
-
Method Details
-
nullablePrimitive
-
nullable
-
notNullable
-
createVector
Construct a new vector of this type using the given allocator. -
convertField
Constructs a new instance from a flatbuffer representation of the field. -
getField
public int getField(com.google.flatbuffers.FlatBufferBuilder builder) Puts this object intobuilder
and returns the length of the serialized flatbuffer. -
getName
-
isNullable
public boolean isNullable() -
getType
-
getFieldType
-
getDictionary
-
getChildren
-
getMetadata
-
hashCode
public int hashCode() -
equals
-
toString
-