Package org.apache.beam.sdk.options
Class ValueProvider.NestedValueProvider<T,X>
java.lang.Object
org.apache.beam.sdk.options.ValueProvider.NestedValueProvider<T,X>
- All Implemented Interfaces:
Serializable
,ValueProvider<T>
- Enclosing interface:
ValueProvider<T>
public static class ValueProvider.NestedValueProvider<T,X>
extends Object
implements ValueProvider<T>, Serializable
ValueProvider.NestedValueProvider
is an implementation of ValueProvider
that allows for
wrapping another ValueProvider
object.- 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 TypeMethodDescriptionboolean
get()
Returns the runtime value wrapped by thisValueProvider
in case it isValueProvider.isAccessible()
, otherwise fails.int
hashCode()
boolean
Whether the contents of thisValueProvider
is currently available viaValueProvider.get()
.static <T,
X> ValueProvider.NestedValueProvider <T, X> of
(ValueProvider<X> value, SerializableFunction<X, T> translator) Creates aValueProvider.NestedValueProvider
that wraps the provided value.Returns the property name associated with this provider.toString()
-
Method Details
-
of
public static <T,X> ValueProvider.NestedValueProvider<T,X> of(ValueProvider<X> value, SerializableFunction<X, T> translator) Creates aValueProvider.NestedValueProvider
that wraps the provided value. -
get
Description copied from interface:ValueProvider
Returns the runtime value wrapped by thisValueProvider
in case it isValueProvider.isAccessible()
, otherwise fails.- Specified by:
get
in interfaceValueProvider<T>
-
isAccessible
public boolean isAccessible()Description copied from interface:ValueProvider
Whether the contents of thisValueProvider
is currently available viaValueProvider.get()
.- Specified by:
isAccessible
in interfaceValueProvider<T>
-
propertyName
Returns the property name associated with this provider. -
toString
-
equals
-
hashCode
public int hashCode()
-