A parent class to implement shared functionality for TileDBArray and TileDBGroup classes.
This class is not intended to be used directly.
Active bindings
ctxTileDB Context.
tiledb_timestampSet or retrieve a
TileDBtimestamp range that the resource will be opened at. Effective in"READ"mode only.This is a mutable field to set timestamps dynamically for time-travelling. 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()
Note: Setting a new timestamp, the object will be reopened only if it is in
"READ"mode. ForTileDBGroupobjects will clear the member cache and will reopen the group resource so as to propagate theTileDBtime-stamp to members.uriThe URI of the
TileDBobject.modeGet the mode of the object: one of the following:
"CLOSED","READ"or"WRITE".object_typeThe TileDB object type:
"ARRAY", for dense or sparse array resource"GROUP", for group resource"INVALID", for not a TileDB resource
Methods
Method new()
Create a new TileDB object.
Usage
TileDBObject$new(uri, ctx = NULL, tiledb_timestamp = NULL)Arguments
uriURI path for the
TileDBobject.ctxOptional
tiledb::tiledb_ctx()object.tiledb_timestampSet a
TileDBtimestamp range that the resource will be opened at. Effective in"READ"mode only. Valid options:A
NULLvalue (default)An
Robject coercible toPOSIXctwith length 1 which is used for end timestamp, or length 2 with start, end timestampsAn object of class
tiledb_timestamp. Seeset_tiledb_timestamp()
Note: When setting new a time-stamp, the object will be reopened only if it is in
"READ"mode.
Method reopen()
Close and reopen the TileDB object in a new mode.
Usage
TileDBObject$reopen(mode = c("READ", "WRITE"))Method exists()
Check if the object exists.
Method get_metadata()
Retrieve metadata from a TileDB Object.
When a TileDB object (array or group) is in "CLOSED" mode, then it will be
opened in "READ" mode in order to fetch the metadata; and be kept opened until
is closed by the user.
Method set_metadata()
Add list of metadata to a TileDB Object.
The TileDB object should be open in "WRITE" mode.