object_store_offload_disk: Disk-based offload

object_store_offload_diskR Documentation

Disk-based offload

Description

Disk-based offload

Disk-based offload

Details

A disk-based offload for object_store. This is not intended at all for direct user-use.

Methods

Public methods


Method new()

Create the store

Usage
object_store_offload_disk$new(path)
Arguments
path

A directory name to store objects in. It will be created if it does not yet exist.


Method mset()

Save a number of values to disk

Usage
object_store_offload_disk$mset(hash, value)
Arguments
hash

A character vector of object hashes

value

A list of serialised objects (each of which is a raw vector)


Method mget()

Retrieve a number of objects from the store

Usage
object_store_offload_disk$mget(hash)
Arguments
hash

A character vector of hashes of the objects to return. The objects will be deserialised before return.


Method mdel()

Delete a number of objects from the store

Usage
object_store_offload_disk$mdel(hash)
Arguments
hash

A character vector of hashes to remove


Method list()

List hashes stored in this offload store

Usage
object_store_offload_disk$list()

Method destroy()

Completely delete the store (by deleting the directory)

Usage
object_store_offload_disk$destroy()

mrc-ide/rrq documentation built on April 21, 2024, 4:18 a.m.