Virtual base class to add ND-array-specific functionality to the
SOMAArrayBase
class (lifecycle: maturing).
See also
Derived classes: SOMADenseNDArray
,
SOMASparseNDArray
Super classes
tiledbsoma::SOMAObject
-> tiledbsoma::SOMAArrayBase
-> SOMANDArrayBase
Methods
Inherited methods
tiledbsoma::SOMAObject$class()
tiledbsoma::SOMAObject$exists()
tiledbsoma::SOMAObject$get_metadata()
tiledbsoma::SOMAObject$initialize()
tiledbsoma::SOMAObject$is_open()
tiledbsoma::SOMAObject$mode()
tiledbsoma::SOMAObject$reopen()
tiledbsoma::SOMAObject$set_metadata()
tiledbsoma::SOMAArrayBase$allows_duplicates()
tiledbsoma::SOMAArrayBase$attributes()
tiledbsoma::SOMAArrayBase$attrnames()
tiledbsoma::SOMAArrayBase$close()
tiledbsoma::SOMAArrayBase$colnames()
tiledbsoma::SOMAArrayBase$dimensions()
tiledbsoma::SOMAArrayBase$dimnames()
tiledbsoma::SOMAArrayBase$index_column_names()
tiledbsoma::SOMAArrayBase$is_sparse()
tiledbsoma::SOMAArrayBase$maxshape()
tiledbsoma::SOMAArrayBase$ndim()
tiledbsoma::SOMAArrayBase$non_empty_domain()
tiledbsoma::SOMAArrayBase$open()
tiledbsoma::SOMAArrayBase$print()
tiledbsoma::SOMAArrayBase$schema()
tiledbsoma::SOMAArrayBase$shape()
Method create()
Create a SOMA NDArray named with the URI
(lifecycle: maturing).
Note: $create()
is considered internal and should not be
called directly; use factory functions
(eg. SOMASparseNDArrayCreate()
) instead.
Arguments
type
An Arrow type defining the type of each element in the array.
shape
a vector of integers defining the shape of the array.
platform_config
A platform configuration object
Method tiledbsoma_has_upgraded_shape()
Test if the array has the upgraded resizeable shape feature
from TileDB-SOMA 1.15, the array was created with this support, or it has
had $upgrade_domain()
applied to it (lifecycle: maturing).
Method resize()
Increases the shape of the array as specified, up to the hard
limit which is maxshape
. Raises an error if the new shape is less
than the current shape or exceeds maxshape
in any dimension. Also
raises an error if the array doesn't already have a shape; in that case
please call $tiledbsoma_upgrade_shape()
(lifecycle: maturing).
Method tiledbsoma_upgrade_shape()
Allows the array to have a resizeable shape as described in
the TileDB-SOMA 1.15 release notes. Raises an error if the shape exceeds
maxshape
in any dimension, or if the array already has a shape.
The methods $tiledbsoma_upgrade_shape()
and $resize()
are
very similar: the former must be called on a pre-1.15 array the first
time a shape is set on it; the latter must be used for subsequent resizes
on any array which already has upgraded shape (lifecycle: maturing).