Class ArrowType.ExtensionType
java.lang.Object
org.apache.arrow.vector.types.pojo.ArrowType
org.apache.arrow.vector.types.pojo.ArrowType.ComplexType
org.apache.arrow.vector.types.pojo.ArrowType.ExtensionType
- Enclosing class:
- ArrowType
A user-defined data type that wraps an underlying storage type.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.arrow.vector.types.pojo.ArrowType
ArrowType.ArrowTypeID, ArrowType.ArrowTypeVisitor<T>, ArrowType.Binary, ArrowType.BinaryView, ArrowType.Bool, ArrowType.ComplexType, ArrowType.ComplexTypeVisitor<T>, ArrowType.Date, ArrowType.Decimal, ArrowType.Duration, ArrowType.ExtensionType, ArrowType.FixedSizeBinary, ArrowType.FixedSizeList, ArrowType.FloatingPoint, ArrowType.Int, ArrowType.Interval, ArrowType.LargeBinary, ArrowType.LargeList, ArrowType.LargeUtf8, ArrowType.List, ArrowType.ListView, ArrowType.Map, ArrowType.Null, ArrowType.PrimitiveType, ArrowType.PrimitiveTypeVisitor<T>, ArrowType.Struct, ArrowType.Time, ArrowType.Timestamp, ArrowType.Union, ArrowType.Utf8, ArrowType.Utf8View
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ArrowType.ArrowTypeVisitor<T> visitor) abstract ArrowType
deserialize
(ArrowType storageType, String serializedData) Given saved metadata and the underlying storage type, construct a new instance of the user type.boolean
abstract boolean
Check equality of this type to another user-defined type.abstract String
The name of this user-defined type.abstract FieldVector
getNewVector
(String name, FieldType fieldType, BufferAllocator allocator) Construct a vector for the user type.int
getType
(com.google.flatbuffers.FlatBufferBuilder builder) int
hashCode()
abstract String
Save any metadata for this type.abstract ArrowType
The on-wire type for this user-defined type.toString()
Methods inherited from class org.apache.arrow.vector.types.pojo.ArrowType.ComplexType
isComplex
Methods inherited from class org.apache.arrow.vector.types.pojo.ArrowType
getInt, getTypeForField
-
Field Details
-
EXTENSION_METADATA_KEY_NAME
The field metadata key storing the name of the extension type.- See Also:
-
EXTENSION_METADATA_KEY_METADATA
The field metadata key storing metadata for the extension type.- See Also:
-
-
Constructor Details
-
ExtensionType
public ExtensionType()
-
-
Method Details
-
storageType
The on-wire type for this user-defined type. -
extensionName
The name of this user-defined type. Used to identify the type during serialization. -
extensionEquals
Check equality of this type to another user-defined type. -
serialize
Save any metadata for this type. -
deserialize
Given saved metadata and the underlying storage type, construct a new instance of the user type. -
getNewVector
public abstract FieldVector getNewVector(String name, FieldType fieldType, BufferAllocator allocator) Construct a vector for the user type. -
getTypeID
-
getType
public int getType(com.google.flatbuffers.FlatBufferBuilder builder) -
toString
-
hashCode
public int hashCode() -
equals
-
accept
-