| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../api/../generated/../../cpp/api/extension.html | [Back] [Original] |
Bool8 is an alternate representation for boolean arrays using 8 bits instead of 1 bit per value.
The underlying storage type is int8.
Public Functions
Unique name of extension type used to identify type for serialization.
the string name of the extension
A string representation of the type, including any children.
Determine if two instances of the same extension types are equal.
Invoked from ExtensionType::Equals
other [in] the type to compare this type with
bool true if type instances are equal
Create a serialized representation of the extension types metadata.
The storage type will be handled automatically in IPC code paths
the serialized representation
Create an instance of the ExtensionType given the actual storage type and the serialized representation.
storage_type [in] the physical storage type of the extension
serialized_data [in] the serialized representation produced by Serialize
Create a Bool8Array from ArrayData.
Concrete type class for constant-size Tensor data.
This is a canonical arrow extension type. See: https://arrow.apache.org/docs/format/CanonicalExtensions.html
Public Functions
Unique name of extension type used to identify type for serialization.
the string name of the extension
A string representation of the type, including any children.
Number of dimensions of tensor elements.
Shape of tensor elements.
Strides of tensor elements.
Strides state offset in bytes between adjacent elements along each dimension. In case permutation is non-empty strides are computed from permuted tensor elements shape.
Permutation mapping from logical to physical memory layout of tensor elements.
Dimension names of tensor elements. Dimensions are ordered physically.
Determine if two instances of the same extension types are equal.
Invoked from ExtensionType::Equals
other [in] the type to compare this type with
bool true if type instances are equal
Create a serialized representation of the extension types metadata.
The storage type will be handled automatically in IPC code paths
the serialized representation
Create an instance of the ExtensionType given the actual storage type and the serialized representation.
storage_type [in] the physical storage type of the extension
serialized_data [in] the serialized representation produced by Serialize
Create a FixedShapeTensorArray from ArrayData.
Public Static Functions
Create a Tensor from an ExtensionScalar from a FixedShapeTensorArray.
This method will return a Tensor from ExtensionScalar with strides derived from shape and permutation of FixedShapeTensorType. Shape and dim_names will be permuted according to permutation stored in the FixedShapeTensorType metadata.
Create a FixedShapeTensorType instance.
Opaque is a placeholder for a type from an external (usually non-Arrow) system that could not be interpreted.
Public Functions
Construct an OpaqueType.
storage_type [in] The underlying storage type. Should be arrow::null if there is no data.
type_name [in] The name of the type in the external system.
vendor_name [in] The name of the external system.
Unique name of extension type used to identify type for serialization.
the string name of the extension
A string representation of the type, including any children.
Determine if two instances of the same extension types are equal.
Invoked from ExtensionType::Equals
other [in] the type to compare this type with
bool true if type instances are equal
Create a serialized representation of the extension types metadata.
The storage type will be handled automatically in IPC code paths
the serialized representation
Create an instance of the ExtensionType given the actual storage type and the serialized representation.
storage_type [in] the physical storage type of the extension
serialized_data [in] the serialized representation produced by Serialize
Create an OpaqueArray from ArrayData.
Concrete type class for variable-size JSON data, utf8-encoded.
Public Functions
Unique name of extension type used to identify type for serialization.
the string name of the extension
Determine if two instances of the same extension types are equal.
Invoked from ExtensionType::Equals
other [in] the type to compare this type with
bool true if type instances are equal
Create an instance of the ExtensionType given the actual storage type and the serialized representation.
storage_type [in] the physical storage type of the extension
serialized_data [in] the serialized representation produced by Serialize
Create a serialized representation of the extension types metadata.
The storage type will be handled automatically in IPC code paths
the serialized representation
Wrap built-in Array type in a user-defined ExtensionArray instance.
data [in] the physical storage for the extension type
UuidType is a canonical arrow extension type for UUIDs.
UUIDs are stored as FixedSizeBinary(16) with big-endian notation and this does not interpret the bytes in any way. Specific UUID version is not required or guaranteed.
Public Functions
Unique name of extension type used to identify type for serialization.
the string name of the extension
A string representation of the type, including any children.
Determine if two instances of the same extension types are equal.
Invoked from ExtensionType::Equals
other [in] the type to compare this type with
bool true if type instances are equal
Create an instance of the ExtensionType given the actual storage type and the serialized representation.
storage_type [in] the physical storage type of the extension
serialized_data [in] the serialized representation produced by Serialize
Create a serialized representation of the extension types metadata.
The storage type will be handled automatically in IPC code paths
the serialized representation
Bool8 is an alternate representation for boolean arrays using 8 bits instead of 1 bit per value.
The underlying storage type is int8.
Public Functions
Construct an ExtensionArray from an ArrayData.
The ArrayData must have the right ExtensionType.
Construct an ExtensionArray from a type and the underlying storage.
Public Functions
Create a Tensor from FixedShapeTensorArray.
This method will create a Tensor from a FixedShapeTensorArray, setting its first dimension as length equal to the FixedShapeTensorArrays length and the remaining dimensions as the FixedShapeTensorTypes shape. Shape and dim_names will be permuted according to permutation stored in the FixedShapeTensorType metadata.
Construct an ExtensionArray from an ArrayData.
The ArrayData must have the right ExtensionType.
Construct an ExtensionArray from a type and the underlying storage.
Public Static Functions
Create a FixedShapeTensorArray from a Tensor.
This method will create a FixedShapeTensorArray from a Tensor, taking its first dimension as the number of elements in the resulting array and the remaining dimensions as the shape of the individual tensors. If Tensor provides strides, they will be used to determine dimension permutation. Otherwise, row-major layout (i.e. no permutation) will be assumed.
tensor [in] The Tensor to convert to a FixedShapeTensorArray
Opaque is a wrapper for (usually binary) data from an external (often non-Arrow) system that could not be interpreted.
Public Functions
Construct an ExtensionArray from an ArrayData.
The ArrayData must have the right ExtensionType.
Construct an ExtensionArray from a type and the underlying storage.
UuidArray stores array of UUIDs.
Underlying storage type is FixedSizeBinary(16).
Public Functions
Construct an ExtensionArray from an ArrayData.
The ArrayData must have the right ExtensionType.
Construct an ExtensionArray from a type and the underlying storage.
| Web Proxy Viewer | New URL | Original Page |