Package org.apache.beam.sdk.options
Class ValueProvider.RuntimeValueProvider<T>
java.lang.Object
org.apache.beam.sdk.options.ValueProvider.RuntimeValueProvider<T>
- All Implemented Interfaces:
Serializable,ValueProvider<T>
- Enclosing interface:
ValueProvider<T>
public static class ValueProvider.RuntimeValueProvider<T>
extends Object
implements ValueProvider<T>, Serializable
ValueProvider.RuntimeValueProvider is an implementation of ValueProvider 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 to Pipeline.run()), which will provide
the value of optionsMap.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.beam.sdk.options.ValueProvider
ValueProvider.Deserializer, ValueProvider.NestedValueProvider<T,X>, ValueProvider.RuntimeValueProvider<T>, ValueProvider.Serializer, ValueProvider.StaticValueProvider<T> -
Method Summary
Modifier and TypeMethodDescriptionbooleanget()Returns the runtime value wrapped by thisValueProviderin case it isValueProvider.isAccessible(), otherwise fails.inthashCode()booleanWhether the contents of thisValueProvideris currently available viaValueProvider.get().Returns the property name that corresponds to this provider.toString()
-
Method Details
-
get
Description copied from interface:ValueProviderReturns the runtime value wrapped by thisValueProviderin case it isValueProvider.isAccessible(), otherwise fails.- Specified by:
getin interfaceValueProvider<T>
-
isAccessible
public boolean isAccessible()Description copied from interface:ValueProviderWhether the contents of thisValueProvideris currently available viaValueProvider.get().- Specified by:
isAccessiblein interfaceValueProvider<T>
-
propertyName
Returns the property name that corresponds to this provider. -
toString
-
equals
-
hashCode
public int hashCode()
-