Package org.apache.beam.sdk.transforms
Class DoFn.ProcessContinuation
java.lang.Object
org.apache.beam.sdk.transforms.DoFn.ProcessContinuation
When used as a return value of
DoFn.ProcessElement, indicates whether there is more work to
be done for the current element.
If the DoFn.ProcessElement call completes because of a failed tryClaim() call on
the RestrictionTracker, then the call MUST return stop().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DoFn.ProcessContinuationresume()Indicates that there is more work to be done for the current element.abstract DurationA minimum duration that should elapse between the end of thisDoFn.ProcessElementcall and theDoFn.ProcessElementcall continuing processing of the same element.abstract booleanIf false, theDoFnpromises that there is no more work remaining for the current element, so the runner should not resume theDoFn.ProcessElementcall.static DoFn.ProcessContinuationstop()Indicates that there is no more work to be done for the current element.withResumeDelay(Duration resumeDelay) Builder method to set the value ofresumeDelay().
-
Constructor Details
-
ProcessContinuation
public ProcessContinuation()
-
-
Method Details
-
stop
Indicates that there is no more work to be done for the current element. -
resume
Indicates that there is more work to be done for the current element. -
shouldResume
public abstract boolean shouldResume()If false, theDoFnpromises that there is no more work remaining for the current element, so the runner should not resume theDoFn.ProcessElementcall. -
resumeDelay
A minimum duration that should elapse between the end of thisDoFn.ProcessElementcall and theDoFn.ProcessElementcall continuing processing of the same element. By default, zero. -
withResumeDelay
Builder method to set the value ofresumeDelay().
-