LazyArray
Internal class definition of lazy array objects
meta_name
file name to store meta information
min_version
minimal version supported, for backward compatibility concerns
version
current version of lazy data instance
dim
dimension of the data
dimnames
dimension names of the data
ndim
length of dimensions
can_write
is array read-only or writable
storage_path
directory 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")
path
directory to store data into
read_only
whether modification is allowed
meta_name
meta file to store the data into
flag_auto_clean()
Set auto clean flag
ClassLazyArray$flag_auto_clean(auto)
auto
logical 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)
force
whether to force remove the data
warn
whether 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)
dim
integer vector of the array dimension; see dim
dimnames
named 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)
part
integer representing the partition
full_path
whether return the full system path
Character file name or full path
@set_data()
Internal method to set data
ClassLazyArray$@set_data(value, ...)
value
vector of data to be set
...
index set
set_compress_level()
Set compression level
ClassLazyArray$set_compress_level(level)
level
from 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
drop
whether 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)
deep
Whether to make a deep clone.