@Internal public class CachedSideInputReader extends java.lang.Object implements org.apache.beam.runners.core.SideInputReader
Materializations
.
Concurrent access is not expected, but it won't impact correctness.Modifier and Type | Method and Description |
---|---|
<T> boolean |
contains(PCollectionView<T> view) |
<T> T |
get(PCollectionView<T> view,
BoundedWindow window) |
boolean |
isEmpty() |
static org.apache.beam.runners.core.SideInputReader |
of(org.apache.beam.runners.core.SideInputReader reader,
java.util.Collection<PCollectionView<?>> views)
Creates a SideInputReader that caches results for costly
Materializations if present, otherwise the SideInputReader is returned as is. |
public static org.apache.beam.runners.core.SideInputReader of(org.apache.beam.runners.core.SideInputReader reader, java.util.Collection<PCollectionView<?>> views)
Materializations
if present, otherwise the SideInputReader is returned as is. Concurrent
access is not expected, but it won't impact correctness.public <T> T get(PCollectionView<T> view, BoundedWindow window)
get
in interface org.apache.beam.runners.core.SideInputReader
public <T> boolean contains(PCollectionView<T> view)
contains
in interface org.apache.beam.runners.core.SideInputReader
public boolean isEmpty()
isEmpty
in interface org.apache.beam.runners.core.SideInputReader