public class RemoveUnexistingFilesAction extends TableActionBase
FileStoreCommitImpl.filterCommitted(java.util.List<org.apache.paimon.manifest.ManifestCommittable>)
for more detail), so
file F is committed to the manifest once again.
Note that user is on his own risk using this procedure, which may cause data loss when used outside from the use cases above.
identifier, table
batchTEnv, catalog, catalogName, catalogOptions, env, flinkCatalog
Constructor and Description |
---|
RemoveUnexistingFilesAction(String databaseName,
String tableName,
Map<String,String> catalogConfig) |
Modifier and Type | Method and Description |
---|---|
void |
build()
Builds the action within the given Flink Stream Execution Environment.
|
org.apache.flink.streaming.api.datastream.DataStream<String> |
buildDataStream() |
RemoveUnexistingFilesAction |
dryRun() |
void |
run()
The execution method of the action.
|
RemoveUnexistingFilesAction |
withParallelism(int parallelism) |
batchSink
catalogConfig, catalogLoader, compatibleCheck, execute, initFlinkCatalog, initFlinkEnv, initPaimonCatalog, toPaimonTypes, withStreamExecutionEnvironment
public RemoveUnexistingFilesAction dryRun()
public RemoveUnexistingFilesAction withParallelism(int parallelism)
public void build() throws Exception
Action
This method is responsible for setting up any necessary configurations or resources needed for the action to run. It is called before the `run` method to prepare the environment for execution.
By default, this method is empty and can be overridden by subclasses to provide custom setup logic.
Exception
- If an error occurs during the build process.public org.apache.flink.streaming.api.datastream.DataStream<String> buildDataStream() throws Exception
Exception
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.