Skip to contents

Returns a locally checkpointed version of this SparkDataFrame. Checkpointing can be used to truncate the logical plan, which is especially useful in iterative algorithms where the plan may grow exponentially. Local checkpoints are stored in the executors using the caching subsystem and therefore they are not reliable.

Usage

localCheckpoint(x, eager = TRUE)

# S4 method for SparkDataFrame
localCheckpoint(x, eager = TRUE)

Arguments

x

A SparkDataFrame

eager

whether to locally checkpoint this SparkDataFrame immediately

Value

a new locally checkpointed SparkDataFrame

Note

localCheckpoint since 2.3.0

Examples

if (FALSE) {
df <- localCheckpoint(df)
}