Class LambdaPolicy
- java.lang.Object
-
- org.apache.nemo.compiler.optimizer.policy.LambdaPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,Policy
public final class LambdaPolicy extends java.lang.Object implements Policy
Lambda Policy Description: A part of lambda executor, to support Lambda policy.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LambdaPolicy()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRDAG
runCompileTimeOptimization(IRDAG dag, java.lang.String dagDirectory)
Optimize the DAG with the compile-time optimizations.IRDAG
runRunTimeOptimizations(IRDAG dag, Message<?> message)
Optimize the DAG with the run-time optimizations.
-
-
-
Method Detail
-
runCompileTimeOptimization
public IRDAG runCompileTimeOptimization(IRDAG dag, java.lang.String dagDirectory)
Description copied from interface:Policy
Optimize the DAG with the compile-time optimizations.- Specified by:
runCompileTimeOptimization
in interfacePolicy
- Parameters:
dag
- input DAG.dagDirectory
- directory to save the DAG information.- Returns:
- optimized DAG, reshaped or tagged with execution properties.
-
runRunTimeOptimizations
public IRDAG runRunTimeOptimizations(IRDAG dag, Message<?> message)
Description copied from interface:Policy
Optimize the DAG with the run-time optimizations.- Specified by:
runRunTimeOptimizations
in interfacePolicy
- Parameters:
dag
- input DAG.message
- from the DAG execution.- Returns:
- optimized DAG, reshaped or tagged with execution properties.
-
-