public abstract static class ArrowType.ExtensionType extends ArrowType.ComplexType
ArrowType.ArrowTypeID, ArrowType.ArrowTypeVisitor<T>, ArrowType.Binary, 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.Map, ArrowType.Null, ArrowType.PrimitiveType, ArrowType.PrimitiveTypeVisitor<T>, ArrowType.Struct, ArrowType.Time, ArrowType.Timestamp, ArrowType.Union, ArrowType.Utf8
Modifier and Type | Field and Description |
---|---|
static String |
EXTENSION_METADATA_KEY_METADATA
The field metadata key storing metadata for the extension type.
|
static String |
EXTENSION_METADATA_KEY_NAME
The field metadata key storing the name of the extension type.
|
Constructor and Description |
---|
ExtensionType() |
Modifier and Type | Method and Description |
---|---|
<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 |
equals(Object obj) |
abstract boolean |
extensionEquals(ArrowType.ExtensionType other)
Check equality of this type to another user-defined type.
|
abstract String |
extensionName()
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) |
ArrowType.ArrowTypeID |
getTypeID() |
int |
hashCode() |
abstract String |
serialize()
Save any metadata for this type.
|
abstract ArrowType |
storageType()
The on-wire type for this user-defined type.
|
String |
toString() |
isComplex
getInt, getTypeForField
public static final String EXTENSION_METADATA_KEY_NAME
public static final String EXTENSION_METADATA_KEY_METADATA
public abstract ArrowType storageType()
public abstract String extensionName()
public abstract boolean extensionEquals(ArrowType.ExtensionType other)
public abstract String serialize()
public abstract ArrowType deserialize(ArrowType storageType, String serializedData)
public abstract FieldVector getNewVector(String name, FieldType fieldType, BufferAllocator allocator)
public ArrowType.ArrowTypeID getTypeID()
public int getType(com.google.flatbuffers.FlatBufferBuilder builder)
public <T> T accept(ArrowType.ArrowTypeVisitor<T> visitor)
Copyright © 2023 The Apache Software Foundation. All rights reserved.