@Internal public interface Executor
Transformation
s generated by the Planner
.
This uncouples the TableEnvironment
from any given runtime.
Note that not every table program calls createPipeline(List, ReadableConfig, String)
or execute(Pipeline)
. When bridging to DataStream API, this interface serves as a
communication layer to the final pipeline executor via StreamExecutionEnvironment
.
ExecutorFactory
Modifier and Type | Method and Description |
---|---|
Pipeline |
createPipeline(List<Transformation<?>> transformations,
ReadableConfig tableConfiguration,
String defaultJobName)
Translates the given transformations to a
Pipeline . |
Pipeline |
createPipeline(List<Transformation<?>> transformations,
ReadableConfig tableConfiguration,
String defaultJobName,
List<JobStatusHook> jobStatusHookList)
Translates the given transformations with a list of
JobStatusHook s to a Pipeline . |
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.
|
ReadableConfig getConfiguration()
Pipeline createPipeline(List<Transformation<?>> transformations, ReadableConfig tableConfiguration, @Nullable String defaultJobName)
Pipeline
.transformations
- list of transformationstableConfiguration
- table-specific configuration optionsdefaultJobName
- default job name if not specified via PipelineOptions.NAME
Pipeline createPipeline(List<Transformation<?>> transformations, ReadableConfig tableConfiguration, @Nullable String defaultJobName, List<JobStatusHook> jobStatusHookList)
JobStatusHook
s to a Pipeline
.transformations
- list of transformationstableConfiguration
- table-specific configuration optionsdefaultJobName
- default job name if not specified via PipelineOptions.NAME
jobStatusHookList
- list of JobStatusHook
sJobExecutionResult execute(Pipeline pipeline) throws Exception
pipeline
- the pipeline to executeException
- which occurs during job execution.JobClient executeAsync(Pipeline pipeline) throws Exception
boolean isCheckpointingEnabled()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.