Functional interface that initialises a TileDBArrayExp instance and opens
an array object at READ or WRITE mode.
Arguments
- uri
URI path for the
TileDBobject.- mode
Mode to open : either
"READ" (default) or "WRITE".- ctx
Optional
tiledb::tiledb_ctx()object.- tiledb_timestamp
Set a
TileDBtimestamp range that the resource will be opened at. Effective only for"READ"mode. Valid options:A
NULLvalue (default)An
Robject coercible toPOSIXctwith length 1 which used for end timestamp, or length 2 with start, end timestampsAn object of class
tiledb_timestamp. Seeset_tiledb_timestamp()
Also, it can be set through active field
$tiledb_timestamp.
Active bindings
ctx: A TileDB Context. Seetiledb::tiledb_ctx()tiledb_timestamp: ATileDBtimestamp range that the resource will be opened at. Seeset_tiledb_timestamp()uri: The URI of theTileDBobjectmode: Get the mode of the object: one of the following:"CLOSED","READ"or"WRITE"object_type: TheTileDBobject type:"ARRAY","GROUP"or"INVALID"object: Access the underlyingtiledb::tiledb_array()object. When used before open() method, the underlying array will be initialised at"READ"mode and kept openfragments_object: Access the TileDBFragments instance for this arrayschema_version: Retrieve the schema version for this arrayis_sparse: Check array schema for sparsitysize: Directory size
Methods
Public Methods
$class()$is_open()$exists()$get_metadata()$set_metadata()$new()$open()$close()$tiledb_array()$schema()$schema_info()$dimensions()$attributes()$dimnames()$attrnames()$colnames()$print()$create()$delete_array()$reopen()$any_enums()$enum_columns()$enum_levels()$has_enumeration()$consolidate()$consolidate_async()$vacuum()$vacuum_async()$consolidate_and_vacuum()$consolidate_and_vacuum_async()$drop_attribute()$frag_num()$frag_to_vacuum()$frag_dump()$frag_uris()$schema_upgrade()$dir_tree()
Examples
if (FALSE) { # \dontrun{
uri <- tempdir()
# create demo array on disk
demo_array_UCBAdmissions(uri)
arrobj <- tdb_array(uri)
arrobj$object_type
#> "ARRAY"
arrobj$frag_num()
#> 3
arrobj$colnames()
#> "Dept" "Gender" "Admit" "Freq"
arrobj$has_enumeration()
#> Admit Freq
#> TRUE FALSE
} # }