Base class for representing an individual TileDB array.
Details
Initialization
Initializing a TileDBArray
object does not automatically create a new array
at the specified uri
if one does not already exist because we don't know
what the schema will be. Arrays are only created by child classes, which
populate the private create_empty_array()
and ingest_data()
methods.
Methods
Inherited methods
Method new()
Create a new TileDBArray object.
Usage
TileDBArray$new(uri, verbose = TRUE, config = NULL, ctx = NULL)
Arguments
uri
URI for the TileDB array
verbose
Print status messages
config
optional configuration
ctx
optional tiledb context
Print summary of the array.
Method array_exists()
Check if the array exists.
Usage
TileDBArray$array_exists()
Returns
TRUE if the array exists, FALSE otherwise.
Method tiledb_array()
Return a TileDBArray
object
Usage
TileDBArray$tiledb_array(...)
Retrieve metadata from the TileDB array.
Usage
TileDBArray$get_metadata(key = NULL, prefix = NULL)
Arguments
key
The name of the metadata attribute to retrieve.
prefix
Filter metadata using an optional prefix. Ignored if key
is not NULL.
Returns
A list of metadata values.
Add list of metadata to the specified TileDB array.
Usage
TileDBArray$add_metadata(metadata, prefix = "")
Arguments
metadata
Named list of metadata to add.
prefix
Optional prefix to add to the metadata attribute names.
Method schema()
Retrieve the array schema
Method dimensions()
Retrieve the array dimensions
Retrieve the array attributes
Retrieve dimension names
Returns
A character vector with the array's dimension names
Method fragment_count()
Get number of fragments in the array
Usage
TileDBArray$fragment_count()
Method attrnames()
Retrieve attribute names
Returns
A character vector with the array's attribute names
Method set_query()
Set dimension values to slice from the array.
Usage
TileDBArray$set_query(dims = NULL, attr_filter = NULL)
Arguments
dims
a named list of character vectors. Each name must correspond
to an array dimension. The character vectors within each element are used
to set the arrays selected ranges for each corresponding dimension.
attr_filter
a TileDB query condition for attribute filtering.
pushdown.
Method reset_query()
Reset the query. By default both dimension ranges and
attribute filters are cleared.
Usage
TileDBArray$reset_query(dims = TRUE, attr_filter = TRUE)
Arguments
dims
Clear the defined dimension ranges?
attr_filter
Clear the defined attribute filters?
Method clone()
The objects of this class are cloneable with this method.
Usage
TileDBArray$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.