java.lang.Object
org.apache.arrow.vector.types.pojo.Field
A POJO abstraction for the Flatbuffer description of Vector Type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldconvertField(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.booleanintgetField(com.google.flatbuffers.FlatBufferBuilder builder) Puts this object intobuilderand returns the length of the serialized flatbuffer.getName()getType()inthashCode()booleanstatic FieldnotNullable(String name, ArrowType type) static Fieldstatic FieldnullablePrimitive(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 intobuilderand returns the length of the serialized flatbuffer. -
getName
-
isNullable
public boolean isNullable() -
getType
-
getFieldType
-
getDictionary
-
getChildren
-
getMetadata
-
hashCode
public int hashCode() -
equals
-
toString
-