@NotThreadSafe public abstract static class BundleSplitListener.InMemory extends java.lang.Object implements BundleSplitListener
BundleSplitListener which gathers all splits produced and stores them in memory.BundleSplitListener.InMemory| Constructor and Description |
|---|
InMemory() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
static BundleSplitListener.InMemory |
create() |
abstract java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.BundleApplication> |
getPrimaryRoots() |
abstract java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.DelayedBundleApplication> |
getResidualRoots() |
void |
split(java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.BundleApplication> primaryRoots,
java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.DelayedBundleApplication> residualRoots)
Signals that the current application should be split into the given primary and residual roots.
|
public static BundleSplitListener.InMemory create()
public void split(java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.BundleApplication> primaryRoots,
java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.DelayedBundleApplication> residualRoots)
BundleSplitListenerPrimary roots are the new decomposition of the bundle's work into transform applications that have happened or will happen as part of this bundle (modulo future splits). Residual roots are a decomposition of work that has been given away by the bundle, so the runner must delegate it for someone else to execute.
split in interface BundleSplitListenerpublic void clear()
public abstract java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.BundleApplication> getPrimaryRoots()
public abstract java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.DelayedBundleApplication> getResidualRoots()