public class AsyncDoFnRunner<InT,OutT>
extends java.lang.Object
implements org.apache.beam.runners.core.DoFnRunner<InT,OutT>
DoFnRunner adds the capability of executing the DoFn.ProcessElement in the thread pool, and returns the future to
the collector for the underlying async execution.| Modifier and Type | Method and Description |
|---|---|
static <InT,OutT> AsyncDoFnRunner<InT,OutT> |
create(org.apache.beam.runners.core.DoFnRunner<InT,OutT> runner,
OpEmitter<OutT> emitter,
FutureCollector<OutT> futureCollector,
boolean isStateful,
SamzaPipelineOptions options) |
void |
finishBundle() |
org.apache.beam.sdk.transforms.DoFn<InT,OutT> |
getFn() |
<KeyT> void |
onTimer(java.lang.String timerId,
java.lang.String timerFamilyId,
KeyT key,
org.apache.beam.sdk.transforms.windowing.BoundedWindow window,
org.joda.time.Instant timestamp,
org.joda.time.Instant outputTimestamp,
org.apache.beam.sdk.state.TimeDomain timeDomain) |
<KeyT> void |
onWindowExpiration(org.apache.beam.sdk.transforms.windowing.BoundedWindow window,
org.joda.time.Instant timestamp,
KeyT key) |
void |
processElement(org.apache.beam.sdk.util.WindowedValue<InT> elem) |
void |
startBundle() |
public static <InT,OutT> AsyncDoFnRunner<InT,OutT> create(org.apache.beam.runners.core.DoFnRunner<InT,OutT> runner, OpEmitter<OutT> emitter, FutureCollector<OutT> futureCollector, boolean isStateful, SamzaPipelineOptions options)
public void startBundle()
public void processElement(org.apache.beam.sdk.util.WindowedValue<InT> elem)
public <KeyT> void onTimer(java.lang.String timerId,
java.lang.String timerFamilyId,
KeyT key,
org.apache.beam.sdk.transforms.windowing.BoundedWindow window,
org.joda.time.Instant timestamp,
org.joda.time.Instant outputTimestamp,
org.apache.beam.sdk.state.TimeDomain timeDomain)
public void finishBundle()
public <KeyT> void onWindowExpiration(org.apache.beam.sdk.transforms.windowing.BoundedWindow window,
org.joda.time.Instant timestamp,
KeyT key)