@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class ExtensionType extends DataType
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static int |
type_id |
| Constructor and Description |
|---|
ExtensionType(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DataTypeResult |
Deserialize(DataType storage_type,
BytePointer serialized_data) |
DataTypeResult |
Deserialize(DataType storage_type,
String serialized_data)
\brief Create an instance of the ExtensionType given the actual storage
type and the serialized representation
|
String |
extension_name()
\brief Unique name of extension type used to identify type for
serialization
|
boolean |
ExtensionEquals(ExtensionType other)
\brief Determine if two instances of the same extension types are
equal.
|
DataTypeLayout |
layout()
\brief Return the data type layout.
|
Array |
MakeArray(ArrayData data)
\brief Wrap built-in Array type in a user-defined ExtensionArray instance
|
String |
name()
\brief A string name of the type, omitting any child fields
\note Experimental API
|
String |
Serialize()
\brief Create a serialized representation of the extension type's
metadata.
|
DataType |
storage_type()
\brief The type of array used to represent this extension type's data
|
String |
ToString()
\brief A string representation of the type, including any children
|
static int |
type_id() |
static String |
type_name() |
static Array |
WrapArray(DataType ext_type,
Array storage)
\brief Wrap the given storage array as an extension array
|
static ChunkedArray |
WrapArray(DataType ext_type,
ChunkedArray storage)
\brief Wrap the given chunked storage array as a chunked extension array
|
Accept, child, children, Equals, Equals, field, fields, Hash, id, num_children, num_fieldsfingerprint, metadata_fingerprintaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ExtensionType(Pointer p)
Pointer(Pointer).@MemberGetter @Cast(value="const arrow::Type::type") public static int type_id()
public static String type_name()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) public DataType storage_type()
@ByVal public DataTypeLayout layout()
DataType@StdString public String ToString()
DataType@StdString public String name()
DataType@StdString public String extension_name()
@Cast(value="bool") public boolean ExtensionEquals(@Const @ByRef ExtensionType other)
other - [in] the type to compare this type with@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array MakeArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ArrayData>"}) ArrayData data)
data - [in] the physical storage for the extension type@ByVal public DataTypeResult Deserialize(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType storage_type, @StdString String serialized_data)
storage_type - [in] the physical storage type of the extensionserialized_data - [in] the serialized representation produced by
Serialize@ByVal public DataTypeResult Deserialize(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType storage_type, @StdString BytePointer serialized_data)
@StdString public String Serialize()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public static Array WrapArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType ext_type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array storage)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) public static ChunkedArray WrapArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::DataType>"}) DataType ext_type, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) ChunkedArray storage)
Copyright © 2021. All rights reserved.