Skip to contents

Store class that uses a hierarchy of list objects, thus all data will be held in main memory.

Details

MemoryStore for Zarr

Super class

pizzarr::Store -> MemoryStore

Public fields

root

The root list for the store.

Methods

Inherited methods


Method new()

Create a new memory store.

Usage

Returns

A new MemoryStore object.


Method get_parent()

Get the parent of an item.

Usage

MemoryStore$get_parent(item)

Arguments

item

The item key.

Returns

A list with the keys parent and key.


Method get_item()

Get an item from the store.

Usage

MemoryStore$get_item(item = NA)

Arguments

item

The item key.

Returns

The item data in a vector of type raw.


Method set_item()

Set an item in the store.

Usage

MemoryStore$set_item(item, value)

Arguments

item

The item key.

value

The item value as a vector of type raw.


Method contains_item()

Determine whether the store contains an item.

Usage

MemoryStore$contains_item(item)

Arguments

item

The item key.

Returns

A boolean value.


Method listdir()

list the store directory

Usage

MemoryStore$listdir(key = NA)

Arguments

key

character key


Method rmdir()

remove a path within a Store

Usage

MemoryStore$rmdir(item)

Arguments

item

character item


Method clone()

The objects of this class are cloneable with this method.

Usage

MemoryStore$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.