Learn R Programming

RMVL (version 1.1.0.1)

mvl_remap: Enlarge memory map to include recently loaded data.

Description

This function operates on MVL files opened for writing. When writing new data to the MVL file that data is appended at the end and past the end of previously mapped data. Calling mvl_remap() updates the memory mapping to include all the data written before mvl_remap() was called. The MVL file directory is also updated to include recently added entries. Old handles can still be used, but will not include updated directory information. MVL_OBJECT's previously obtained from this handle continue to be valid.

Usage

mvl_remap(MVLHANDLE, append = TRUE)

Value

handle to MVL file, with updated directory.

Arguments

MVLHANDLE

handle to opened MVL file as generated by mvl_open() or mvl_remap()

append

specify FALSE when you do not intend to write the file.

Details

mvl_remap returns a handle with updated directory.

See Also

mvl_open, mvl_close

Examples

Run this code
if (FALSE) {
Mtmp<-mvl_open("tmp_a.mvl", append=TRUE, create=TRUE)
mvl_write_object(Mtmp, runif(100), "vec1")
Mtmp<-mvl_remap(Mtmp)
print(Mtmp["vec1"])
}

Run the code above in your browser using DataLab