Skip to contents

Class representing an abstract store

Format

R6::R6Class

Details

Abstract store for Zarr

See also

Public fields

metadata_class

The metadata encoder/decoder for this store.

Methods


Store$new()

Create a Store object

Usage

Store$new()


Store$is_readable()

Test if Store is readable.

Usage

Store$is_readable()

Returns

Logical.


Store$is_writeable()

Test if Store is writeable.

Usage

Store$is_writeable()

Returns

Logical.


Store$is_erasable()

Test if Store is eraseable.

Usage

Store$is_erasable()

Returns

Logical.


Store$is_listable()

Test if Store is listable.

Usage

Store$is_listable()

Returns

Logical.


Store$close()

Close the store.

Usage

Store$close()

Returns

NULL.


Store$listdir()

List the store directory.

Usage

Store$listdir(path = NA)

Arguments

path

character path.

Returns

Character vector of keys.


Store$rename()

Rename a Store path.

Usage

Store$rename(src_path, dst_path)

Arguments

src_path

character source path.

dst_path

character destination path.

Returns

NULL (called for side effects).


Store$rmdir()

Remove a path within a Store.

Usage

Store$rmdir(path)

Arguments

path

character path.

Returns

NULL (called for side effects).


Store$get_item()

Get an item from the store.

Usage

Store$get_item(key)

Arguments

key

The item key.

Returns

The item data in a vector of type raw.


Store$set_item()

Set an item in the store.

Usage

Store$set_item(key, value)

Arguments

key

The item key.

value

The item value as a vector of type raw.

Returns

NULL (called for side effects).


Store$contains_item()

Determine whether the store contains an item.

Usage

Store$contains_item(key)

Arguments

key

The item key.

Returns

A boolean value.


Store$delete_item()

Delete an item from the store.

Usage

Store$delete_item(key)

Arguments

key

The item key.

Returns

NULL (called for side effects).


Store$get_consolidated_metadata()

Get consolidated metadata if it exists.

Usage

Store$get_consolidated_metadata()

Returns

A list or NULL.


Store$get_store_identifier()

Return a store identifier for zarrs dispatch.

Subclasses override this to return a filesystem path or URL. Returns NULL by default (signals: use R-native path).

Usage

Store$get_store_identifier()

Returns

A character string or NULL.


Store$print()

Print a human-readable summary of the store.

Usage

Store$print(...)

Arguments

...

Ignored.

Returns

self (invisibly).


Store$clone()

The objects of this class are cloneable with this method.

Usage

Store$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.