Package org.apache.flink.table.execution
Class StagingSinkJobStatusHook
java.lang.Object
org.apache.flink.table.execution.StagingSinkJobStatusHook
- All Implemented Interfaces:
Serializable,org.apache.flink.core.execution.JobStatusHook
@Internal
public class StagingSinkJobStatusHook
extends Object
implements org.apache.flink.core.execution.JobStatusHook
This hook is used to implement atomic semantics for CTAS(CREATE TABLE AS SELECT) or RTAS([CREATE
OR] REPLACE TABLE AS SELECT) statement. It'll call the corresponding interfaces of the inner
StagedTable on job status changes.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStagingSinkJobStatusHook(org.apache.flink.table.catalog.StagedTable stagedTable) -
Method Summary
Modifier and TypeMethodDescriptionvoidonCanceled(org.apache.flink.api.common.JobID jobId) voidonCreated(org.apache.flink.api.common.JobID jobId) voidvoidonFinished(org.apache.flink.api.common.JobID jobId)
-
Constructor Details
-
StagingSinkJobStatusHook
public StagingSinkJobStatusHook(org.apache.flink.table.catalog.StagedTable stagedTable)
-
-
Method Details
-
onCreated
public void onCreated(org.apache.flink.api.common.JobID jobId) - Specified by:
onCreatedin interfaceorg.apache.flink.core.execution.JobStatusHook
-
onFinished
public void onFinished(org.apache.flink.api.common.JobID jobId) - Specified by:
onFinishedin interfaceorg.apache.flink.core.execution.JobStatusHook
-
onFailed
- Specified by:
onFailedin interfaceorg.apache.flink.core.execution.JobStatusHook
-
onCanceled
public void onCanceled(org.apache.flink.api.common.JobID jobId) - Specified by:
onCanceledin interfaceorg.apache.flink.core.execution.JobStatusHook
-