Package org.apache.beam.fn.harness
Interface HandlesSplits
-
public interface HandlesSplitsAn interface that may be used to extend aFnDataReceiversignalling that the downstream runner is capable of performing splitting and providing progress reporting.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHandlesSplits.SplitResult
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetProgress()Returns the current progress of the active element as a fraction between 0.0 and 1.0.@Nullable HandlesSplits.SplitResulttrySplit(double fractionOfRemainder)Returns null if the split was unsuccessful.
-
-
-
Method Detail
-
trySplit
@Nullable HandlesSplits.SplitResult trySplit(double fractionOfRemainder)
Returns null if the split was unsuccessful.
-
getProgress
double getProgress()
Returns the current progress of the active element as a fraction between 0.0 and 1.0.
-
-