public class FileRewriteCoordinator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
clearRewrite(Table table,
java.lang.String fileSetID) |
java.util.Set<DataFile> |
fetchNewDataFiles(Table table,
java.lang.String fileSetID) |
java.util.Set<java.lang.String> |
fetchSetIDs(Table table) |
static FileRewriteCoordinator |
get() |
void |
stageRewrite(Table table,
java.lang.String fileSetID,
java.util.Set<DataFile> newDataFiles)
Called to persist the output of a rewrite action for a specific group.
|
public static FileRewriteCoordinator get()
public void stageRewrite(Table table, java.lang.String fileSetID, java.util.Set<DataFile> newDataFiles)
table
- table where the rewrite is occurringfileSetID
- the id used to identify the source set of files being rewrittennewDataFiles
- the new files which have been writtenpublic java.util.Set<DataFile> fetchNewDataFiles(Table table, java.lang.String fileSetID)
public void clearRewrite(Table table, java.lang.String fileSetID)
public java.util.Set<java.lang.String> fetchSetIDs(Table table)