Class BundleSplitListener.InMemory
- java.lang.Object
-
- org.apache.beam.fn.harness.control.BundleSplitListener.InMemory
-
- All Implemented Interfaces:
BundleSplitListener
- Enclosing interface:
- BundleSplitListener
@NotThreadSafe public abstract static class BundleSplitListener.InMemory extends java.lang.Object implements BundleSplitListener
ABundleSplitListenerwhich gathers all splits produced and stores them in memory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.beam.fn.harness.control.BundleSplitListener
BundleSplitListener.InMemory
-
-
Constructor Summary
Constructors Constructor Description InMemory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()static BundleSplitListener.InMemorycreate()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()voidsplit(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.
-
-
-
Method Detail
-
create
public static BundleSplitListener.InMemory create()
-
split
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)Description copied from interface:BundleSplitListenerSignals that the current application should be split into the given primary and residual roots.Primary 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.
- Specified by:
splitin interfaceBundleSplitListener
-
clear
public void clear()
-
getPrimaryRoots
public abstract java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.BundleApplication> getPrimaryRoots()
-
getResidualRoots
public abstract java.util.List<org.apache.beam.model.fnexecution.v1.BeamFnApi.DelayedBundleApplication> getResidualRoots()
-
-