Interface Executor
-
- All Known Implementing Classes:
ChainingOptimizingExecutor
,DefaultExecutor
@Internal public interface Executor
It enables the execution of a graph ofTransformation
s generated by thePlanner
.This uncouples the
TableEnvironment
from any given runtime.Note that not every table program calls
createPipeline(List, ReadableConfig, String)
orexecute(Pipeline)
. When bridging to DataStream API, this interface serves as a communication layer to the final pipeline executor viaStreamExecutionEnvironment
.- See Also:
ExecutorFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pipeline
createPipeline(List<Transformation<?>> transformations, ReadableConfig tableConfiguration, String defaultJobName)
Translates the given transformations to aPipeline
.Pipeline
createPipeline(List<Transformation<?>> transformations, ReadableConfig tableConfiguration, String defaultJobName, List<JobStatusHook> jobStatusHookList)
Translates the given transformations with a list ofJobStatusHook
s to aPipeline
.JobExecutionResult
execute(Pipeline pipeline)
Executes the given pipeline.JobClient
executeAsync(Pipeline pipeline)
Executes the given pipeline asynchronously.ReadableConfig
getConfiguration()
Gives read-only access to the configuration of the executor.boolean
isCheckpointingEnabled()
Checks whether checkpointing is enabled.
-
-
-
Method Detail
-
getConfiguration
ReadableConfig getConfiguration()
Gives read-only access to the configuration of the executor.
-
createPipeline
Pipeline createPipeline(List<Transformation<?>> transformations, ReadableConfig tableConfiguration, @Nullable String defaultJobName)
Translates the given transformations to aPipeline
.- Parameters:
transformations
- list of transformationstableConfiguration
- table-specific configuration optionsdefaultJobName
- default job name if not specified viaPipelineOptions.NAME
- Returns:
- The pipeline representing the transformations.
-
createPipeline
Pipeline createPipeline(List<Transformation<?>> transformations, ReadableConfig tableConfiguration, @Nullable String defaultJobName, List<JobStatusHook> jobStatusHookList)
Translates the given transformations with a list ofJobStatusHook
s to aPipeline
.- Parameters:
transformations
- list of transformationstableConfiguration
- table-specific configuration optionsdefaultJobName
- default job name if not specified viaPipelineOptions.NAME
jobStatusHookList
- list ofJobStatusHook
s- Returns:
- The pipeline representing the transformations.
-
execute
JobExecutionResult execute(Pipeline pipeline) throws Exception
Executes the given pipeline.- Parameters:
pipeline
- the pipeline to execute- Returns:
- The result of the job execution, containing elapsed time and accumulators.
- Throws:
Exception
- which occurs during job execution.
-
executeAsync
JobClient executeAsync(Pipeline pipeline) throws Exception
Executes the given pipeline asynchronously.
-
isCheckpointingEnabled
boolean isCheckpointingEnabled()
Checks whether checkpointing is enabled.- Returns:
- True if checkpointing is enables, false otherwise.
-
-