Constructor and Description |
---|
StreamExecutor(StreamExecutionEnvironment executionEnvironment) |
Modifier and Type | Method and Description |
---|---|
Pipeline |
createPipeline(List<Transformation<?>> transformations,
TableConfig tableConfig,
String jobName)
Translates the given transformations to a Pipeline.
|
JobExecutionResult |
execute(Pipeline pipeline)
Executes the given pipeline.
|
JobClient |
executeAsync(Pipeline pipeline)
Executes the given pipeline asynchronously.
|
StreamExecutionEnvironment |
getExecutionEnvironment() |
@VisibleForTesting public StreamExecutor(StreamExecutionEnvironment executionEnvironment)
public Pipeline createPipeline(List<Transformation<?>> transformations, TableConfig tableConfig, String jobName)
Executor
createPipeline
in interface Executor
transformations
- list of transformationsjobName
- what should be the name of the jobpublic JobExecutionResult execute(Pipeline pipeline) throws Exception
Executor
public JobClient executeAsync(Pipeline pipeline) throws Exception
Executor
executeAsync
in interface Executor
pipeline
- the pipeline to executeJobClient
that can be used to communicate with the submitted job, completed
on submission succeeded.Exception
- which occurs during job execution.public StreamExecutionEnvironment getExecutionEnvironment()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.