TileDBArray | R Documentation |
Base class for representing an individual TileDB array.
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.
tiledbsc::TileDBObject
-> TileDBArray
new()
Create a new TileDBArray object.
TileDBArray$new(uri, verbose = TRUE, config = NULL, ctx = NULL)
uri
URI for the TileDB array
verbose
Print status messages
config
optional configuration
ctx
optional tiledb context
print()
Print summary of the array.
TileDBArray$print()
array_exists()
Check if the array exists.
TileDBArray$array_exists()
TRUE if the array exists, FALSE otherwise.
tiledb_array()
Return a TileDBArray
object
TileDBArray$tiledb_array(...)
...
Optional arguments to pass to tiledb::tiledb_array()
A tiledb::tiledb_array
object.
get_metadata()
Retrieve metadata from the TileDB array.
TileDBArray$get_metadata(key = NULL, prefix = NULL)
key
The name of the metadata attribute to retrieve.
prefix
Filter metadata using an optional prefix. Ignored if key
is not NULL.
A list of metadata values.
add_metadata()
Add list of metadata to the specified TileDB array.
TileDBArray$add_metadata(metadata, prefix = "")
metadata
Named list of metadata to add.
prefix
Optional prefix to add to the metadata attribute names.
NULL
schema()
Retrieve the array schema
TileDBArray$schema()
A tiledb::tiledb_array_schema
object
dimensions()
Retrieve the array dimensions
TileDBArray$dimensions()
A list of tiledb::tiledb_dim
objects
attributes()
Retrieve the array attributes
TileDBArray$attributes()
A list of tiledb::tiledb_attr
objects
dimnames()
Retrieve dimension names
TileDBArray$dimnames()
A character vector with the array's dimension names
fragment_count()
Get number of fragments in the array
TileDBArray$fragment_count()
attrnames()
Retrieve attribute names
TileDBArray$attrnames()
A character vector with the array's attribute names
set_query()
Set dimension values to slice from the array.
TileDBArray$set_query(dims = NULL, attr_filter = NULL)
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.
reset_query()
Reset the query. By default both dimension ranges and attribute filters are cleared.
TileDBArray$reset_query(dims = TRUE, attr_filter = TRUE)
dims
Clear the defined dimension ranges?
attr_filter
Clear the defined attribute filters?
NULL
clone()
The objects of this class are cloneable with this method.
TileDBArray$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.