Package org.apache.iceberg.spark
Class FileRewriteCoordinator
java.lang.Object
org.apache.iceberg.spark.FileRewriteCoordinator
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearRewrite(Table table, String fileSetId) fetchNewFiles(Table table, String fileSetId) fetchSetIds(Table table) static FileRewriteCoordinatorget()voidstageRewrite(Table table, String fileSetId, Set<DataFile> newFiles) Called to persist the output of a rewrite action for a specific group.
-
Method Details
-
get
-
stageRewrite
Called to persist the output of a rewrite action for a specific group. Since the write is done via a Spark Datasource, we have to propagate the result through this side-effect call.- Parameters:
table- table where the rewrite is occurringfileSetId- the id used to identify the source set of files being rewrittennewFiles- the new files which have been written
-
fetchNewFiles
-
clearRewrite
-
fetchSetIds
-