A class for working with TileDB Fragments.
Initialization
A new TileDBFragments instance is initialised using the new() method or
with the functional interface tdb_fragments().
Active bindings
uriThe URI of the TileDB object.
fragment_infoGet the TileDB Fragment Info object as returned by tiledb::tiledb_fragment_info.
Methods
Method new()
Create a new TileDBFragments instance.
Usage
TileDBFragments$new(uri, ctx = NULL)Arguments
uriURI path for the
TileDBArray.ctxOptional
tiledb::tiledb_ctx()object.
Method frag_uris()
Return a data.frame with time stamps and
fragments uris.
Arguments
trunc_uriTRUEfor fragment name in the form:__ts1_ts2_<label>_<ver>, otherwiseFALSEfor full path.
Returns
An object of class data.frame with four columns:
Fragment: the fragment index (start at 1)start_timestamp: start time-stamp of when fragment was writtenend_timestamp: end time-stamp of when fragment was writtenURI: fragment's truncated uri path (fragment name) whentrunc_uri = TRUE(default), otherwise the full uri path
Note that the return object will be of class data.table if the
package is found in your system.
Method to_vacuum()
Consolidated fragments to be removed.
Arguments
trunc_uriTRUEfor fragment name in the form:__ts1_ts2_<label>_<ver>, otherwiseFALSEfor full path.
Returns
An object of class data.frame with four columns:
Fragment: the fragment index (starts at 1)start_timestamp: fragment's start time stampend_timestamp: fragment's end time stampURI: fragment's truncated uri path (fragment name) whentrunc_uri = TRUE(default), otherwise the full uri path
Note that the return object will be of class data.table if the
package is found in your system.
Method delete_fragment_list()
Delete fragments using a vector of fragment uris.
Use $frag_uris(trunc_uri = FALSE) method to get a data.frame
with all fragment uri paths.