public class FieldType extends Object
Constructor and Description |
---|
FieldType(boolean nullable,
ArrowType type,
DictionaryEncoding dictionary) |
FieldType(boolean nullable,
ArrowType type,
DictionaryEncoding dictionary,
Map<String,String> metadata)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
FieldVector |
createNewSingleVector(Field field,
BufferAllocator allocator,
CallBack schemaCallBack) |
FieldVector |
createNewSingleVector(String name,
BufferAllocator allocator,
CallBack schemaCallBack) |
boolean |
equals(Object obj) |
DictionaryEncoding |
getDictionary() |
Map<String,String> |
getMetadata() |
ArrowType |
getType() |
int |
hashCode() |
boolean |
isNullable() |
static FieldType |
notNullable(ArrowType type) |
static FieldType |
nullable(ArrowType type) |
public FieldType(boolean nullable, ArrowType type, DictionaryEncoding dictionary)
public FieldType(boolean nullable, ArrowType type, DictionaryEncoding dictionary, Map<String,String> metadata)
nullable
- Whether the Vector is nullabletype
- The logical arrow type of the field.dictionary
- The dictionary encoding of the field.metadata
- Custom metadata for the field.public boolean isNullable()
public ArrowType getType()
public DictionaryEncoding getDictionary()
public FieldVector createNewSingleVector(String name, BufferAllocator allocator, CallBack schemaCallBack)
public FieldVector createNewSingleVector(Field field, BufferAllocator allocator, CallBack schemaCallBack)
Copyright © 2024 The Apache Software Foundation. All rights reserved.