Description Usage Arguments Details Value Examples
Functions to manage the storage of spark_tbl objects.
persist is capable of various storage modes (see details), and
cache is shorthand for "MEMORY_AND_DISK" storage level.
| 1 2 3 4 5 6 7 | cache(.data)
persist(.data, newLevel)
unpersist(.data, blocking = TRUE)
storage_level(.data)
 | 
| .data | a  | 
| newLevel | storage level chosen for the persistence. See available options in the details. | 
| blocking | boolean, whether to block until all blocks are deleted. | 
For details of the supported storage levels, refer to rdd-persistence.
a spark_tbl
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run: 
spark_session()
iris_tbl <- spark_tbl(iris)
storage_level(iris_tbl)
persist(iris_tbl, "MEMORY_AND_DISK")
storage_level(iris_tbl)
unpersist(iris_tbl)
storage_level(iris_tbl)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.