public class SparkSideInputReader
extends java.lang.Object
implements org.apache.beam.runners.core.SideInputReader
SideInputReader
for the SparkRunner.Constructor and Description |
---|
SparkSideInputReader(java.util.Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> sideInputs) |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
contains(PCollectionView<T> view)
Returns true if the given
PCollectionView is valid for this reader. |
<T> T |
get(PCollectionView<T> view,
BoundedWindow window)
Returns the value of the given
PCollectionView for the given BoundedWindow . |
boolean |
isEmpty()
Returns true if there are no side inputs in this reader.
|
public SparkSideInputReader(java.util.Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> sideInputs)
@Nullable public <T> T get(PCollectionView<T> view, BoundedWindow window)
org.apache.beam.runners.core.SideInputReader
PCollectionView
for the given BoundedWindow
.
It is valid for a side input to be null
. It is not valid for this to
return null
for any other reason.
get
in interface org.apache.beam.runners.core.SideInputReader
public <T> boolean contains(PCollectionView<T> view)
org.apache.beam.runners.core.SideInputReader
PCollectionView
is valid for this reader.contains
in interface org.apache.beam.runners.core.SideInputReader
public boolean isEmpty()
org.apache.beam.runners.core.SideInputReader
isEmpty
in interface org.apache.beam.runners.core.SideInputReader