Base class for representing a TileDB Array.
Initialization
A new TileDBArray instance is initialized using the new() method:
# uri path
uri <- tempdir()
# new instance
obj <- TileDBArray$new(uri = uri)
# does array exist at this uri
obj$exists() # FALSE
unlink(uri)Super class
R6.tiledb::TileDBObject -> TileDBArray
Active bindings
objectAccess the underlying
tiledb::tiledb_array()object. When used before open() method, the underlying array will be initialised at"READ"mode and kept open.
Methods
Method open()
Open TileDB array object for read or write.
This methods opens the underlying tiledb::tiledb_array() object in the
new mode if it is different from the current mode.
When the new mode and current mode is the same, no action is taken.
To force close and then open again use reopen() method.
When a time-stamp is specified, it will be effective in "READ" mode only.
Usage
TileDBArray$open(mode = c("READ", "WRITE"))Method tiledb_array()
Return a tiledb::tiledb_array object.
If a query_type not provided then it will be inherited from class
mode; in case the class mode is "CLOSED", then the query type
defaults to "READ".
Arguments
...Optional arguments to pass to
tiledb::tiledb_array().
Returns
A tiledb::tiledb_array object.
Method schema()
Retrieve the array schema as TileDB schema.
Returns
A tiledb::tiledb_array_schema object.
Method dimensions()
Retrieve the array dimensions.
Returns
A named list of tiledb::tiledb_dim objects.
Method dimnames()
Retrieve dimension names.
Method colnames()
Retrieve the names of all columns, including dimensions and attributes.