Class SideInputMetadata
- java.lang.Object
-
- org.apache.beam.runners.spark.translation.SideInputMetadata
-
- All Implemented Interfaces:
java.io.Serializable
public class SideInputMetadata extends java.lang.Object implements java.io.SerializableMetadata class for side inputs in Spark runner. Contains serialized data, type information and coder for side input processing.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SideInputMetadatacreate(byte[] data, SparkPCollectionView.Type type, org.apache.beam.sdk.coders.Coder<java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<?>>> coder)Creates a new instance of SideInputMetadata.SideInputBroadcasttoSideInputBroadcast()Converts this metadata to aSideInputBroadcastinstance.
-
-
-
Method Detail
-
create
public static SideInputMetadata create(byte[] data, SparkPCollectionView.Type type, org.apache.beam.sdk.coders.Coder<java.lang.Iterable<org.apache.beam.sdk.values.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
public SideInputBroadcast toSideInputBroadcast()
Converts this metadata to aSideInputBroadcastinstance.- Returns:
- A new
SideInputBroadcastinstance created from this metadata
-
-