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 innerStagedTableon job status changes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StagingSinkJobStatusHook(org.apache.flink.table.catalog.StagedTable stagedTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCanceled(org.apache.flink.api.common.JobID jobId)voidonCreated(org.apache.flink.api.common.JobID jobId)voidonFailed(org.apache.flink.api.common.JobID jobId, Throwable throwable)voidonFinished(org.apache.flink.api.common.JobID jobId)
-
-
-
Method Detail
-
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
public void onFailed(org.apache.flink.api.common.JobID jobId, Throwable throwable)- 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
-
-