Description Usage Arguments Value Examples
When using class DList
the underlying
‘virtual’ storage plays an
important role. It defines how to use the given storage (read/write
methods, etc.), where the data is to be stored (i.e., the base
directory on the file system), and how DMap
as well as
DReduce
have to be applied.
1 2 | DStorage(type = c("LFS", "HDFS"), base_dir, chunksize = 1024^2)
is.DStorage( ds )
|
type |
the type of the storage to be created. Currently only
|
base_dir |
specifies the base directory where data is to be stored. |
chunksize |
defines the size of each chunk written to the virtual storage. |
ds |
a virtual possibly distributed storage. |
An object which inherits from class DStorage
, or, in case of
is.DStorage()
a logical indicating whether it inherits from
"DStorage"
or not.
1 2 3 4 | ## creating a new virtual storage using 50MB chunks
ds <- DStorage(type = "LFS", base_dir = tempdir(),
chunksize = 50 * 1024^2)
is.DStorage( ds )
|
[1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.