public class Field extends Object
Constructor and Description |
---|
Field(String name,
FieldType fieldType,
List<Field> children) |
Modifier and Type | Method and Description |
---|---|
static Field |
convertField(Field field)
Constructs a new instance from a flatbuffer representation of the field.
|
FieldVector |
createVector(BufferAllocator allocator)
Construct a new vector of this type using the given allocator.
|
boolean |
equals(Object obj) |
List<Field> |
getChildren() |
DictionaryEncoding |
getDictionary() |
int |
getField(com.google.flatbuffers.FlatBufferBuilder builder)
Puts this object into
builder and returns the length of the serialized flatbuffer. |
FieldType |
getFieldType() |
Map<String,String> |
getMetadata() |
String |
getName() |
ArrowType |
getType() |
int |
hashCode() |
boolean |
isNullable() |
static Field |
notNullable(String name,
ArrowType type) |
static Field |
nullable(String name,
ArrowType type) |
static Field |
nullablePrimitive(String name,
ArrowType.PrimitiveType type) |
String |
toString() |
public static Field nullablePrimitive(String name, ArrowType.PrimitiveType type)
public FieldVector createVector(BufferAllocator allocator)
public static Field convertField(Field field)
public int getField(com.google.flatbuffers.FlatBufferBuilder builder)
builder
and returns the length of the serialized flatbuffer.public String getName()
public boolean isNullable()
public ArrowType getType()
public FieldType getFieldType()
public DictionaryEncoding getDictionary()
Copyright © 2023 The Apache Software Foundation. All rights reserved.