physical.ff.rdFunctions for getting and setting physical and virtual attributes of ff objects.
# S3 method for class 'ff'
physical(x)
# S3 method for class 'ff'
virtual(x)
# S3 method for class 'ff'
physical(x) <- value
# S3 method for class 'ff'
virtual(x) <- valueff objects have physical and virtual attributes, which have different copying semantics:
physical attributes are shared between copies of ff objects while virtual attributes might differ between copies.
as.ram will retain some physical and virtual atrributes in the ram clone,
such that as.ff can restore an ff object with the same attributes.
physical and virtual returns a list with named elements
physical.ff, physical.ffdf, ff, as.ram; is.sorted and na.count for applications of physical attributes; levels.ff and ramattribs for applications of virtual attributes
x <- ff(1:12)
x
#> ff (open) integer length=12 (12)
#> [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
#> 1 2 3 4 5 6 : 7 8 9 10 11 12
physical(x)
#> $vmode
#> [1] "integer"
#>
#> $maxlength
#> [1] 12
#>
#> $pattern
#> [1] "ff"
#>
#> $filename
#> [1] "/tmp/Rtmph7o01n/ff/ff345fc069b9a057.ff"
#>
#> $pagesize
#> [1] 65536
#>
#> $finalizer
#> [1] "delete"
#>
#> $finonexit
#> [1] TRUE
#>
#> $readonly
#> [1] FALSE
#>
#> $caching
#> [1] "mmnoflush"
#>
virtual(x)
#> $Length
#> [1] 12
#>
#> $Symmetric
#> [1] FALSE
#>
y <- as.ram(x)
physical(y)
#> $pattern
#> [1] "ff"
#>
#> $filename
#> [1] "/tmp/Rtmph7o01n/ff/ff345fc069b9a057.ff"
#>
#> $pagesize
#> [1] 65536
#>
#> $finalizer
#> [1] "delete"
#>
#> $finonexit
#> [1] TRUE
#>
#> $caching
#> [1] "mmnoflush"
#>
virtual(y)
#> named list()
rm(x,y); gc()
#> used (Mb) gc trigger (Mb) max used (Mb)
#> Ncells 1162327 62.1 1994352 106.6 1994352 106.6
#> Vcells 2166437 16.6 8790397 67.1 8790397 67.1