I - the type of the (main) input elementsO - the type of the (main) output elementspublic static class IntraBundleParallelization.MultiThreadedIntraBundleProcessingDoFn<I,O> extends DoFn<I,O>
DoFn wrapper.DoFn.Context, DoFn.KeyedState, DoFn.ProcessContext, DoFn.RequiresKeyedState, DoFn.RequiresWindowAccess| Constructor and Description |
|---|
IntraBundleParallelization.MultiThreadedIntraBundleProcessingDoFn(DoFn<I,O> doFn,
int maxParallelism) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishBundle(DoFn.Context c)
Finishes processing this batch of elements.
|
void |
processElement(DoFn.ProcessContext c)
Processes an input element.
|
void |
startBundle(DoFn.Context c)
Prepares this
DoFn instance for processing a batch of elements. |
getAllowedTimestampSkewpublic void startBundle(DoFn.Context c) throws java.lang.Exception
DoFnDoFn instance for processing a batch of elements.
By default, does nothing.
startBundle in class DoFn<I,O>java.lang.Exceptionpublic void processElement(DoFn.ProcessContext c) throws java.lang.Exception
DoFnprocessElement in class DoFn<I,O>java.lang.Exceptionpublic void finishBundle(DoFn.Context c) throws java.lang.Exception
DoFnDoFn
instance will be thrown away after this operation returns.
By default, does nothing.
finishBundle in class DoFn<I,O>java.lang.Exception