Package org.apache.beam.fn.harness
Interface PTransformRunnerFactory
-
- All Known Implementing Classes:
CombineRunners.PrecombineFactory
public interface PTransformRunnerFactoryA factory able to instantiate an appropriate handler for a given PTransform.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePTransformRunnerFactory.ContextA context used to instantiate and support the handler necessary to execute the PTransform.static interfacePTransformRunnerFactory.RegistrarA registrar which can return a mapping fromRunnerApi.FunctionSpec.getUrn()to a factory capable of instantiating an appropriate handler.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRunnerForPTransform(PTransformRunnerFactory.Context context)Creates and registers a handler for a given PTransform.
-
-
-
Method Detail
-
addRunnerForPTransform
void addRunnerForPTransform(PTransformRunnerFactory.Context context) throws java.io.IOException
Creates and registers a handler for a given PTransform. Note that the handler must support processing multiple bundles. The handler will be discarded if bundle processing fails or management of the handler between bundle processing fails. The handler may also be discarded due to memory pressure.- Throws:
java.io.IOException
-
-