| DeltaOptimizeBuilder-class | R Documentation |
S4 class that represents pending optimize operation
jobA Java object reference to the backing DeltaOptimizeBuilder
DeltaOptimizeBuilder, since 2.0.0
## Not run:
set.seed(323)
target_path <- tempfile()
data.frame(
id = 1:12,
key = rep(c("a", "b", "c"), each = 4),
value = rnorm(12)
) %>%
createDataFrame() %>%
dlt_write(target_path, partitionBy = "key")
dlt_for_path(target_path) %>%
dlt_optimize() %>%
dlt_where("key = 'a'") %>%
dlt_execute_compaction() %>%
showDF()
dlt_for_path(target_path) %>%
dlt_optimize() %>%
dlt_where("key = 'b'") %>%
dlt_execute_z_order_by("id") %>%
showDF()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.