public class FlinkRunner extends PipelineRunner<PipelineResult>
PipelineRunner
that executes the operations in the
pipeline by first translating them to a Flink Plan and then executing them either locally
or on a Flink cluster, depending on the configuration.Modifier and Type | Method and Description |
---|---|
protected static java.util.List<java.lang.String> |
detectClassPathResourcesToStage(java.lang.ClassLoader classLoader)
Attempts to detect all the resources the class loader has access to.
|
static FlinkRunner |
fromOptions(PipelineOptions options)
Construct a runner from the provided options.
|
FlinkPipelineOptions |
getPipelineOptions()
For testing.
|
PipelineResult |
run(Pipeline pipeline)
Processes the given
Pipeline , potentially asynchronously, returning a runner-specific
type of result. |
java.lang.String |
toString() |
public static FlinkRunner fromOptions(PipelineOptions options)
options
- Properties which configure the runner.public PipelineResult run(Pipeline pipeline)
PipelineRunner
Pipeline
, potentially asynchronously, returning a runner-specific
type of result.run
in class PipelineRunner<PipelineResult>
public FlinkPipelineOptions getPipelineOptions()
public java.lang.String toString()
toString
in class java.lang.Object
protected static java.util.List<java.lang.String> detectClassPathResourcesToStage(java.lang.ClassLoader classLoader)
classLoader
- The URLClassLoader to use to detect resources to stage.java.lang.IllegalArgumentException
- If either the class loader is not a URLClassLoader or one
of the resources the class loader exposes is not a file resource.