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
org.apache.arrow.vector.extension.OpaqueType
Opaque is a placeholder for a type from an external (usually non-Arrow) system that could not be
interpreted.
-
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.LargeListView, ArrowType.LargeUtf8, ArrowType.List, ArrowType.ListView, ArrowType.Map, ArrowType.Null, ArrowType.PrimitiveType, ArrowType.PrimitiveTypeVisitor<T>, ArrowType.RunEndEncoded, ArrowType.Struct, ArrowType.Time, ArrowType.Timestamp, ArrowType.Union, ArrowType.Utf8, ArrowType.Utf8View
-
Field Summary
Fields inherited from class org.apache.arrow.vector.types.pojo.ArrowType.ExtensionType
EXTENSION_METADATA_KEY_METADATA, EXTENSION_METADATA_KEY_NAME
-
Constructor Summary
ConstructorDescriptionOpaqueType
(ArrowType storageType, String typeName, String vendorName) Create a new type instance. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(ArrowType storageType, String serializedData) Given saved metadata and the underlying storage type, construct a new instance of the user type.static void
Register the extension type so it can be used globally.boolean
Check equality of this type to another user-defined type.The name of this user-defined type.getNewVector
(String name, FieldType fieldType, BufferAllocator allocator) Construct a vector for the user type.int
hashCode()
Save any metadata for this type.The on-wire type for this user-defined type.toString()
typeName()
Methods inherited from class org.apache.arrow.vector.types.pojo.ArrowType.ExtensionType
accept, equals, getType, getTypeID
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_NAME
- See Also:
-
-
Constructor Details
-
OpaqueType
Create a new type instance.- Parameters:
storageType
- The underlying Arrow type.typeName
- The name of the unknown type.vendorName
- The name of the originating system of the unknown type.
-
-
Method Details
-
ensureRegistered
public static void ensureRegistered()Register the extension type so it can be used globally. -
storageType
Description copied from class:ArrowType.ExtensionType
The on-wire type for this user-defined type.- Specified by:
storageType
in classArrowType.ExtensionType
-
typeName
-
vendorName
-
extensionName
Description copied from class:ArrowType.ExtensionType
The name of this user-defined type. Used to identify the type during serialization.- Specified by:
extensionName
in classArrowType.ExtensionType
-
extensionEquals
Description copied from class:ArrowType.ExtensionType
Check equality of this type to another user-defined type.- Specified by:
extensionEquals
in classArrowType.ExtensionType
-
serialize
Description copied from class:ArrowType.ExtensionType
Save any metadata for this type.- Specified by:
serialize
in classArrowType.ExtensionType
-
deserialize
Description copied from class:ArrowType.ExtensionType
Given saved metadata and the underlying storage type, construct a new instance of the user type.- Specified by:
deserialize
in classArrowType.ExtensionType
-
getNewVector
Description copied from class:ArrowType.ExtensionType
Construct a vector for the user type.- Specified by:
getNewVector
in classArrowType.ExtensionType
-
hashCode
public int hashCode()- Overrides:
hashCode
in classArrowType.ExtensionType
-
toString
- Overrides:
toString
in classArrowType.ExtensionType
-