Package org.apache.beam.sdk.options
Class PipelineOptions.DirectRunner
java.lang.Object
org.apache.beam.sdk.options.PipelineOptions.DirectRunner
- All Implemented Interfaces:
DefaultValueFactory<Class<? extends PipelineRunner<?>>>
- Enclosing interface:
PipelineOptions
public static class PipelineOptions.DirectRunner
extends Object
implements DefaultValueFactory<Class<? extends PipelineRunner<?>>>
A
DefaultValueFactory
that obtains the class of the DirectRunner
if it exists
on the classpath, and throws an exception otherwise.
As the DirectRunner
is in an independent module, it cannot be directly referenced as
the Default
. However, it should still be used if available, and a user is required to
explicitly set the --runner
property if they wish to use an alternative runner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends PipelineRunner<?>> create
(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory
.
-
Constructor Details
-
DirectRunner
public DirectRunner()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<Class<? extends PipelineRunner<?>>>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-