Google Cloud Dataflow SDK for Java, version 1.9.1
com.google.cloud.dataflow.sdk.options
Class ValueProvider.RuntimeValueProvider<T>
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.options.ValueProvider.RuntimeValueProvider<T>
-
- All Implemented Interfaces:
- ValueProvider<T>, Serializable
- Enclosing interface:
- ValueProvider<T>
public static class ValueProvider.RuntimeValueProvider<T> extends Object implements ValueProvider<T>, Serializable
ValueProvider.RuntimeValueProvider
is an implementation ofValueProvider
that allows for a value to be provided at execution time rather than at graph construction time.To enforce this contract, if there is no default, users must only call
get()
at execution time (after a call toPipeline.run()
), which will provide the value ofoptionsMap
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.cloud.dataflow.sdk.options.ValueProvider
ValueProvider.Deserializer, ValueProvider.NestedValueProvider<T,X>, ValueProvider.RuntimeValueProvider<T>, ValueProvider.Serializer, ValueProvider.StaticValueProvider<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description T
get()
Return the value wrapped by thisValueProvider
.boolean
isAccessible()
Whether the contents of thisValueProvider
is available to routines that run at graph construction time.String
propertyName()
Returns the property name that corresponds to this provider.String
toString()
-
-
-
Method Detail
-
get
public T get()
Description copied from interface:ValueProvider
Return the value wrapped by thisValueProvider
.- Specified by:
get
in interfaceValueProvider<T>
-
isAccessible
public boolean isAccessible()
Description copied from interface:ValueProvider
Whether the contents of thisValueProvider
is available to routines that run at graph construction time.- Specified by:
isAccessible
in interfaceValueProvider<T>
-
propertyName
public String propertyName()
Returns the property name that corresponds to this provider.
-
-