Class FieldType
java.lang.Object
org.apache.arrow.vector.types.pojo.FieldType
POJO representation of an Arrow field type. It consists of a logical type, nullability and whether the field
(column) is dictionary encoded.
-
Constructor Summary
ConstructorDescriptionFieldType
(boolean nullable, ArrowType type, DictionaryEncoding dictionary) FieldType
(boolean nullable, ArrowType type, DictionaryEncoding dictionary, Map<String, String> metadata) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateNewSingleVector
(String name, BufferAllocator allocator, CallBack schemaCallBack) createNewSingleVector
(Field field, BufferAllocator allocator, CallBack schemaCallBack) boolean
getType()
int
hashCode()
boolean
static FieldType
notNullable
(ArrowType type) static FieldType
-
Constructor Details
-
FieldType
-
FieldType
public FieldType(boolean nullable, ArrowType type, DictionaryEncoding dictionary, Map<String, String> metadata) Constructs a new instance.- Parameters:
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.
-
-
Method Details
-
nullable
-
notNullable
-
isNullable
public boolean isNullable() -
getType
-
getDictionary
-
getMetadata
-
createNewSingleVector
public FieldVector createNewSingleVector(String name, BufferAllocator allocator, CallBack schemaCallBack) -
createNewSingleVector
public FieldVector createNewSingleVector(Field field, BufferAllocator allocator, CallBack schemaCallBack) -
hashCode
public int hashCode() -
equals
-