Skip to contents

An enhanced version of TileDBGroup with additional methods to operate on the group.

Initialization

A new TileDBGroupExp instance is initialised using the new() method. Alternatively use tdb_group() to create a new instance and open the group at READ mode.

 # uri path
 uri <- tempdir()
 # new instance
 obj <- TileDBGroupExp$new(uri = uri)
 # does group exist at this uri
 obj$exists() # FALSE

 unlink(uri)

Value

An object of class TileDBGroupExp, R6.

Super classes

R6.tiledb::TileDBObject -> R6.tiledb::TileDBGroup -> TileDBGroupExp

Active bindings

size

Directory size.

Methods

Inherited methods


Method has_non_members()

Checks for non group members at group's uri path.

This function compares the TileDB resources at group's uri path to its members to determine if there are any non member.

Usage

TileDBGroupExp$has_non_members()

Returns

TRUE for having non members, FALSE otherwise.


Method non_members()

List TileDB resources which are not members at group's uri path.

This function compares the TileDB resources at group's uri path to its members and returns a data.frame with non members object type and uri path.

Usage

TileDBGroupExp$non_members()

Returns

An object of class data.frame with columns TYPE and URI of non member TileDB resources.


Method prune_non_members()

Delete TileDB resources which are not members.

Usage

TileDBGroupExp$prune_non_members()

Returns

An character vector of deleted uri paths.


Method delete_group()

Delete written data from Group.

This function deletes all written data from a tiledb_group object, i.e., the folder will not be consider as a TileDB Group after the operation. Any other data will not be deleted unless we set recursive = TRUE.

Usage

TileDBGroupExp$delete_group(recursive = FALSE)

Arguments

recursive

Should all data be deleted inside the group? Default is FALSE.

Returns

The object, invisibly.


Method walk_group()

List all TileDB resources at group's uri path.

Usage

TileDBGroupExp$walk_group(order = c("pre", "post"))

Arguments

order

Traversal order, either pre (default) or post.

Returns

An object of class data.frame with columns TYPE and URI with all TileDB resources under group's uri path.


Method dir_tree()

Print directory contents.

Usage

TileDBGroupExp$dir_tree(recursive = TRUE)

Arguments

recursive

Should it recurse fully? Defaults to TRUE.

Returns

A character vector with file paths, invisibly.


Method clone()

The objects of this class are cloneable with this method.

Usage

TileDBGroupExp$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.