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
FieldsFields inherited from class org.apache.arrow.vector.types.pojo.ArrowType.ExtensionType
EXTENSION_METADATA_KEY_METADATA, EXTENSION_METADATA_KEY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionOpaqueType(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 voidRegister the extension type so it can be used globally.booleanCheck equality of this type to another user-defined type.The name of this user-defined type.getNewFieldWriter(ValueVector vector) getNewVector(String name, FieldType fieldType, BufferAllocator allocator) Construct a vector for the user type.inthashCode()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, getTypeIDMethods inherited from class org.apache.arrow.vector.types.pojo.ArrowType.ComplexType
isComplexMethods 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.ExtensionTypeThe on-wire type for this user-defined type.- Specified by:
storageTypein classArrowType.ExtensionType
-
typeName
-
vendorName
-
extensionName
Description copied from class:ArrowType.ExtensionTypeThe name of this user-defined type. Used to identify the type during serialization.- Specified by:
extensionNamein classArrowType.ExtensionType
-
extensionEquals
Description copied from class:ArrowType.ExtensionTypeCheck equality of this type to another user-defined type.- Specified by:
extensionEqualsin classArrowType.ExtensionType
-
serialize
Description copied from class:ArrowType.ExtensionTypeSave any metadata for this type.- Specified by:
serializein classArrowType.ExtensionType
-
deserialize
Description copied from class:ArrowType.ExtensionTypeGiven saved metadata and the underlying storage type, construct a new instance of the user type.- Specified by:
deserializein classArrowType.ExtensionType
-
getNewVector
Description copied from class:ArrowType.ExtensionTypeConstruct a vector for the user type.- Specified by:
getNewVectorin classArrowType.ExtensionType
-
hashCode
public int hashCode()- Overrides:
hashCodein classArrowType.ExtensionType
-
getNewFieldWriter
- Overrides:
getNewFieldWriterin classArrowType.ExtensionType
-
toString
- Overrides:
toStringin classArrowType.ExtensionType
-