@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Experimental(value=SPLITTABLE_DO_FN) public static @interface DoFn.SplitRestriction
DoFninto multiple parts to be processed in parallel.
This method is used to perform bulk splitting while a restriction is not actively being
RestrictionTracker.trySplit(double) is used to perform splitting during
This method must satisfy the following constraints:
DoFn.OutputReceiver, then it will be passed an output receiver for outputting the splits. All splits must be output through this parameter.
DoFn.Elementannotation, then it will be passed the current element being processed; the argument must be of type
InputT. Note that automatic conversion of
DoFn.FieldAccessparameters are currently unsupported.
DoFn.Restrictionannotation, then it will be passed the current restriction being processed; the argument must be of type
DoFn.Timestampannotation, then it will be passed the timestamp of the current element being processed; the argument must be of type
RestrictionTracker, then it will be passed a tracker that is initialized for the current
DoFn.Restriction. The argument must be of the exact type
BoundedWindow, then it will be passed the window of the current element. When applied by
ParDothe subtype of
BoundedWindowmust match the type of windows on the input
PCollection. If the window is not accessed a runner may perform additional optimizations.
PaneInfo, then it will be passed information about the current triggering pane.
PipelineOptions, then it will be passed the options for the current pipeline.