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 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:
      onCreated in interface org.apache.flink.core.execution.JobStatusHook
    • onFinished

      public void onFinished(org.apache.flink.api.common.JobID jobId)
      Specified by:
      onFinished in interface org.apache.flink.core.execution.JobStatusHook
    • onFailed

      public void onFailed(org.apache.flink.api.common.JobID jobId, Throwable throwable)
      Specified by:
      onFailed in interface org.apache.flink.core.execution.JobStatusHook
    • onCanceled

      public void onCanceled(org.apache.flink.api.common.JobID jobId)
      Specified by:
      onCanceled in interface org.apache.flink.core.execution.JobStatusHook