Skip to contents

Base class to implement shared functionality across the TileDBArray and TileDBGroup classes. (lifecycle: maturing)

Active bindings

platform_config

Platform configuration

tiledbsoma_ctx

SOMATileDBContext

tiledb_timestamp

Time that object was opened at

uri

The URI of the TileDB object.

.tiledb_timestamp_range

Time range for libtiledbsoma

Methods


Method new()

Create a new TileDB object. (lifecycle: maturing)

Usage

TileDBObject$new(
  uri,
  platform_config = NULL,
  tiledbsoma_ctx = NULL,
  tiledb_timestamp = NULL,
  internal_use_only = NULL,
  soma_context = NULL
)

Arguments

uri

URI for the TileDB object

platform_config

Optional platform configuration

tiledbsoma_ctx

Optional SOMATileDBContext

tiledb_timestamp

Optional Datetime (POSIXct) with TileDB timestamp

internal_use_only

Character value to signal this is a 'permitted' call, as new() is considered internal and should not be called directly.


Method class()

Print the name of the R6 class.

Usage

TileDBObject$class()


Method is_open()

Determine if the object is open for reading or writing

Usage

TileDBObject$is_open()

Returns

TRUE if the object is open, otherwise FALSE


Method mode()

Get the mode of the object

Usage

TileDBObject$mode()

Returns

If the object is closed, returns “CLOSED”; otherwise returns the mode (eg. “READ”) of the object


Method reopen()

Close and reopen the TileDB object in a new mode

Usage

TileDBObject$reopen(mode, tiledb_timestamp = NULL)

Arguments

mode

New mode to open the object in; choose from:

  • READ

  • WRITE

tiledb_timestamp

Optional Datetime (POSIXct) with TileDB timestamp

Returns

Invisibly returns self opened in mode


Method print()

Print-friendly representation of the object.

Usage

TileDBObject$print()


Method exists()

Check if the object exists. (lifecycle: maturing)

Usage

TileDBObject$exists()

Returns

TRUE`` if the object exists, FALSE` otherwise.


Method clone()

The objects of this class are cloneable with this method.

Usage

TileDBObject$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.