The Zarr "blosc" codec offers a number of compression options to reduce the size of a raw vector prior to storing, and uncompressing when reading.
Super classes
zarr::zarr_extension -> zarr::zarr_codec -> zarr_codec_blosc
Active bindings
cnameSet or retrieve the name of the compression algorithm. Must be one of "blosclz", "lz4", "lz4hc", "zstd" or "zlib".
clevelSet or retrieve the compression level. Must be an integer between 0 (no compression) and 9 (maximum compression).
shuffleSet or retrieve the data shuffling of the compression algorithm. Must be one of "shuffle", "noshuffle" or "bitshuffle".
typesizeSet or retrieve the size in bytes of the data type being compressed. It is highly recommended to leave this at the automatically determined value.
blocksizeSet or retrieve the size in bytes of the blocks being compressed. It is highly recommended to leave this at a value of 0 such that the blosc library will automatically determine the optimal value.
Methods
Inherited methods
Method new()
Create a new "blosc" codec object. The typesize argument is
taken from the data type of the array passed in through the data_type
argument and the shuffle argument is chosen based on the data_type.
Usage
zarr_codec_blosc$new(data_type, configuration = NULL)Arguments
data_typeThe zarr_data_type instance of the Zarr array that this codec is used for.
configurationOptional. A list with the configuration parameters for this codec. If not given, the default compression of "zstd" with level 1 will be used.