Description Active bindings Methods Author(s)
Internal class definition of lazy array objects
meta_namefile name to store meta information
min_versionminimal version supported, for backward compatibility concerns
versioncurrent version of lazy data instance
dimdimension of the data
dimnamesdimension names of the data
ndimlength of dimensions
can_writeis array read-only or writable
storage_pathdirectory where the data is stored at
print()Override print method
ClassLazyArray$print(...)
...ignored
self instance
new()Constructor
ClassLazyArray$new(path, read_only = TRUE, meta_name = "lazyarray.meta")
pathdirectory to store data into
read_onlywhether modification is allowed
meta_namemeta file to store the data into
flag_auto_clean()Set auto clean flag
ClassLazyArray$flag_auto_clean(auto)
autological whether the data on hard disk will be automatically cleaned
finalize()Override finalize method
ClassLazyArray$finalize()
remove_data()Remove data on hard disk
ClassLazyArray$remove_data(force = FALSE, warn = TRUE)
forcewhether to force remove the data
warnwhether to show warning if not fully cleaned
make_writable()Make instance writable
ClassLazyArray$make_writable()
make_readonly()Make instance read-only
ClassLazyArray$make_readonly()
set_dim()Set dim and dimnames of the array
ClassLazyArray$set_dim(dim, dimnames)
diminteger vector of the array dimension; see dim
dimnamesnamed list of dimension names; see dimnames
get_file_format()Partition format, currently only 'fst' is supported
ClassLazyArray$get_file_format()
get_storage_format()Data storage format, expected to be one of the followings: 'double', 'integer', 'character', or 'complex'
ClassLazyArray$get_storage_format()
is_multi_part()Whether partitioned based on the last dimension
ClassLazyArray$is_multi_part()
partition_dim()Returns dimension of each partition
ClassLazyArray$partition_dim()
get_partition_fpath()Get partition path
ClassLazyArray$get_partition_fpath(part, full_path = TRUE)
partinteger representing the partition
full_pathwhether return the full system path
Character file name or full path
@set_data()Internal method to set data
ClassLazyArray$@set_data(value, ...)
valuevector of data to be set
...index set
set_compress_level()Set compression level
ClassLazyArray$set_compress_level(level)
levelfrom 0 to 100. 0 means no compression, 100 means max compression
get_compress_level()Get compression level
ClassLazyArray$get_compress_level()
@get_data()Internal method to read data
ClassLazyArray$@get_data(..., drop = TRUE)
...index set
dropwhether to drop dimension after subset, default is true
@sample_data()Internal method to obtain a sample data to be used to determine storage mode
ClassLazyArray$@sample_data()
clone()The objects of this class are cloneable with this method.
ClassLazyArray$clone(deep = FALSE)
deepWhether to make a deep clone.
Zhengjia Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.