Package org.apache.iceberg.flink.sink
Class FlinkManifestUtil
java.lang.Object
org.apache.iceberg.flink.sink.FlinkManifestUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic ManifestOutputFileFactorycreateOutputFileFactory(Supplier<Table> tableSupplier, Map<String, String> tableProps, String flinkJobId, String operatorUniqueId, int subTaskId, long attemptNumber) static voiddeleteCommittedManifests(Table table, List<ManifestFile> manifests, String newFlinkJobId, long checkpointId) static WriteResultreadCompletedFiles(DeltaManifests deltaManifests, FileIO io, Map<Integer, PartitionSpec> specsById) static DeltaManifestswriteCompletedFiles(WriteResult result, Supplier<OutputFile> outputFileSupplier, PartitionSpec spec) Write theWriteResultto temporary manifest files.
-
Method Details
-
createOutputFileFactory
-
writeCompletedFiles
public static DeltaManifests writeCompletedFiles(WriteResult result, Supplier<OutputFile> outputFileSupplier, PartitionSpec spec) throws IOException Write theWriteResultto temporary manifest files.- Parameters:
result- all those DataFiles/DeleteFiles in this WriteResult should be written with same partition spec- Throws:
IOException
-
readCompletedFiles
public static WriteResult readCompletedFiles(DeltaManifests deltaManifests, FileIO io, Map<Integer, PartitionSpec> specsById) throws IOException- Throws:
IOException
-
deleteCommittedManifests
public static void deleteCommittedManifests(Table table, List<ManifestFile> manifests, String newFlinkJobId, long checkpointId)
-