Package org.apache.sysds.hops.rewrite
Class RewriteRemovePersistentReadWrite
- java.lang.Object
 - 
- org.apache.sysds.hops.rewrite.HopRewriteRule
 - 
- org.apache.sysds.hops.rewrite.RewriteRemovePersistentReadWrite
 
 
 
- 
public class RewriteRemovePersistentReadWrite extends HopRewriteRule
This rewrite is a custom rewrite for JMLC in order to replace all persistent reads and writes with transient reads and writes from the symbol table. 
- 
- 
Constructor Summary
Constructors Constructor Description RewriteRemovePersistentReadWrite(String[] in, String[] out)RewriteRemovePersistentReadWrite(String[] in, String[] out, LocalVariableMap vars) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HoprewriteHopDAG(Hop root, ProgramRewriteStatus state)Handle a predicate hop DAG with exactly one root.ArrayList<Hop>rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state)Handle a generic (last-level) hop DAG with multiple roots. 
 - 
 
- 
- 
Constructor Detail
- 
RewriteRemovePersistentReadWrite
public RewriteRemovePersistentReadWrite(String[] in, String[] out)
 
- 
RewriteRemovePersistentReadWrite
public RewriteRemovePersistentReadWrite(String[] in, String[] out, LocalVariableMap vars)
 
 - 
 
- 
Method Detail
- 
rewriteHopDAGs
public ArrayList<Hop> rewriteHopDAGs(ArrayList<Hop> roots, ProgramRewriteStatus state)
Description copied from class:HopRewriteRuleHandle a generic (last-level) hop DAG with multiple roots.- Specified by:
 rewriteHopDAGsin classHopRewriteRule- Parameters:
 roots- high-level operator rootsstate- program rewrite status- Returns:
 - list of high-level operators
 
 
- 
rewriteHopDAG
public Hop rewriteHopDAG(Hop root, ProgramRewriteStatus state)
Description copied from class:HopRewriteRuleHandle a predicate hop DAG with exactly one root.- Specified by:
 rewriteHopDAGin classHopRewriteRule- Parameters:
 root- high-level operator rootstate- program rewrite status- Returns:
 - high-level operator
 
 
 - 
 
 -