Class BasicPushPolicy
- java.lang.Object
-
- org.apache.nemo.compiler.optimizer.policy.BasicPushPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,Policy
public final class BasicPushPolicy extends java.lang.Object implements Policy
Basic push policy. TODO #200: Maintain Test Passes and Policies Separately- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PolicyBuilder
BUILDER
-
Constructor Summary
Constructors Constructor Description BasicPushPolicy()
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.
-
-
-
Field Detail
-
BUILDER
public static final PolicyBuilder BUILDER
-
-
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.
-
-