Base class for representing an individual TileDB array. (lifecycle: maturing)
Super class
tiledbsoma::TileDBObject
-> TileDBArray
Active bindings
object
Access the underlying TileB object directly (either a
tiledb::tiledb_array
ortiledb::tiledb_group
).
Methods
Method open()
Open the SOMA object for read or write.
Usage
TileDBArray$open(mode = c("READ", "WRITE"), internal_use_only = NULL)
Arguments
mode
Mode to open in; defaults to
READ
.internal_use_only
Character value to signal this is a 'permitted' call, as
open()
is considered internal and should not be called directly.
Method tiledb_array()
Return a TileDBArray
object (lifecycle: maturing)
Arguments
...
Optional arguments to pass to
tiledb::tiledb_array()
Returns
A tiledb::tiledb_array
object.
Method get_metadata()
Retrieve metadata from the TileDB array. (lifecycle: maturing)
Method set_metadata()
Add list of metadata to the specified TileDB array. (lifecycle: maturing)
Method schema()
Retrieve the array schema as an Arrow schema (lifecycle: maturing)
Returns
A arrow::schema
object
Method tiledb_schema()
Retrieve the array schema as TileDB schema (lifecycle: maturing)
Returns
A tiledb::tiledb_array_schema
object
Method dimensions()
Retrieve the array dimensions (lifecycle: maturing)
Returns
A named list of tiledb::tiledb_dim
objects
Method shape()
Retrieve the shape, i.e. the capacity of each dimension.
Attempted reads and writes outside the shape
will result in a runtime
error: this is the purpose of shape
. This will not necessarily match
the bounds of occupied cells within the array. Using resize
, this may be
increased up to the hard limit which maxshape
reports.
(lifecycle: maturing)
Method maxshape()
Retrieve the hard limit up to which the array may be resized
using the resize
method.
(lifecycle: maturing)
Method used_shape()
Retrieve the range of indexes for a dimension that were explicitly written. This method is deprecated as of TileDB-SOMA 1.13, and will be removed in TileDB-SOMA 1.16.
Arguments
simplify
Return a vector of
bit64::integer64
s containing only the upper bounds.index1
Return the used shape with 1-based indices (0-based indices are returned by default)
Method non_empty_domain()
Returns a named list of minimum/maximum pairs, one per index column, which are the smallest and largest values written on that index column.
Method attributes()
Retrieve the array attributes (lifecycle: maturing)
Returns
A list of tiledb::tiledb_attr
objects
Method dimnames()
Retrieve dimension names (lifecycle: maturing)
Method colnames()
Retrieve the names of all columns, including dimensions and attributes (lifecycle: maturing)