public class StateFetcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StateFetcher.SideInputState
Indicates the caller's knowledge of whether a particular side input has been computed.
|
| Constructor and Description |
|---|
StateFetcher(MetricTrackingWindmillServerStub server) |
StateFetcher(MetricTrackingWindmillServerStub server,
com.google.common.cache.Cache<com.google.cloud.dataflow.sdk.util.StateFetcher.SideInputId,com.google.cloud.dataflow.sdk.util.StateFetcher.SideInputCacheEntry> sideInputCache) |
| Modifier and Type | Method and Description |
|---|---|
<T,SideWindowT extends BoundedWindow> |
fetchSideInput(PCollectionView<T> view,
SideWindowT sideWindow,
String stateFamily,
StateFetcher.SideInputState state)
Fetch the given side input, storing it in a process-level cache.
|
public StateFetcher(MetricTrackingWindmillServerStub server)
public StateFetcher(MetricTrackingWindmillServerStub server, com.google.common.cache.Cache<com.google.cloud.dataflow.sdk.util.StateFetcher.SideInputId,com.google.cloud.dataflow.sdk.util.StateFetcher.SideInputCacheEntry> sideInputCache)
public <T,SideWindowT extends BoundedWindow> T fetchSideInput(PCollectionView<T> view, SideWindowT sideWindow, String stateFamily, StateFetcher.SideInputState state)
If state is KNOWN_READY, attempt to fetch the data regardless of whether a not-ready entry was cached.