Class SideInputMetadata
java.lang.Object
org.apache.beam.runners.spark.translation.SideInputMetadata
- All Implemented Interfaces:
Serializable
Metadata class for side inputs in Spark runner. Contains serialized data, type information and
coder for side input processing.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SideInputMetadata
create
(byte[] data, SparkPCollectionView.Type type, Coder<Iterable<WindowedValue<?>>> coder) Creates a new instance of SideInputMetadata.Converts this metadata to aSideInputBroadcast
instance.
-
Method Details
-
create
public static SideInputMetadata create(byte[] data, SparkPCollectionView.Type type, Coder<Iterable<WindowedValue<?>>> coder) Creates a new instance of SideInputMetadata.- Parameters:
data
- The serialized side input data as byte arraytype
- The type of the SparkPCollectionViewcoder
- The coder for iterables of windowed values- Returns:
- A new SideInputMetadata instance
-
toSideInputBroadcast
Converts this metadata to aSideInputBroadcast
instance.- Returns:
- A new
SideInputBroadcast
instance created from this metadata
-