Class PolicyImpl
- java.lang.Object
-
- org.apache.nemo.compiler.optimizer.policy.PolicyImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Policy
public final class PolicyImpl extends java.lang.Object implements Policy
Implementation of thePolicy
interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyImpl(java.util.List<CompileTimePass> compileTimePasses, java.util.Set<RunTimePass<?>> runTimePasses)
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 irdag, Message message)
Optimize the DAG with the run-time optimizations.
-
-
-
Constructor Detail
-
PolicyImpl
public PolicyImpl(java.util.List<CompileTimePass> compileTimePasses, java.util.Set<RunTimePass<?>> runTimePasses)
Constructor.- Parameters:
compileTimePasses
- compile time passes of the policy.runTimePasses
- run time passes of the policy.
-
-
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 irdag, Message message)
Description copied from interface:Policy
Optimize the DAG with the run-time optimizations.- Specified by:
runRunTimeOptimizations
in interfacePolicy
- Parameters:
irdag
- input DAG.message
- from the DAG execution.- Returns:
- optimized DAG, reshaped or tagged with execution properties.
-
-