net.sf.bddbddb.ir.highlevel
Class Save

java.lang.Object
  extended by net.sf.bddbddb.ir.Operation
      extended by net.sf.bddbddb.ir.highlevel.HighLevelOperation
          extended by net.sf.bddbddb.ir.highlevel.Save
All Implemented Interfaces:
IterationElement

public class Save
extends HighLevelOperation

Save

Version:
$Id: Save.java 328 2004-10-16 02:45:30Z joewhaley $
Author:
John Whaley

Field Summary
 
Fields inherited from class net.sf.bddbddb.ir.Operation
id, TRACE_VERBOSE
 
Constructor Summary
Save(Relation r, java.lang.String fileName, boolean tuples)
           
 
Method Summary
 Operation copy()
           
 java.lang.String getExpressionString()
           
 java.lang.String getFileName()
           
 Relation getRelationDest()
           
 Relation getSrc()
           
 java.util.List getSrcs()
           
 boolean isTuples()
           
 void replaceSrc(Relation r_old, Relation r_new)
           
 void setRelationDest(Relation r0)
           
 java.lang.String toString()
           
 java.lang.Object visit(HighLevelOperationVisitor i)
           
 
Methods inherited from class net.sf.bddbddb.ir.highlevel.HighLevelOperation
visit
 
Methods inherited from class net.sf.bddbddb.ir.Operation
getNumberOfOperations, getRenames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Save

public Save(Relation r,
            java.lang.String fileName,
            boolean tuples)
Parameters:
r -
Method Detail

visit

public java.lang.Object visit(HighLevelOperationVisitor i)
Specified by:
visit in class HighLevelOperation
Parameters:
i - the visitor
Returns:
the result from the visitor

toString

public java.lang.String toString()
Specified by:
toString in class Operation

getExpressionString

public java.lang.String getExpressionString()
Specified by:
getExpressionString in class Operation
Returns:
the expression in string form

getRelationDest

public Relation getRelationDest()
Specified by:
getRelationDest in class Operation
Returns:
the destination relation of this operation, or null

getSrcs

public java.util.List getSrcs()
Specified by:
getSrcs in class Operation
Returns:
the source relation of this operation

getSrc

public Relation getSrc()
Returns:
Returns the source relation.

copy

public Operation copy()
Specified by:
copy in class Operation

replaceSrc

public void replaceSrc(Relation r_old,
                       Relation r_new)
Specified by:
replaceSrc in class Operation

setRelationDest

public void setRelationDest(Relation r0)
Specified by:
setRelationDest in class Operation

getFileName

public java.lang.String getFileName()
Returns:
the file name being saved

isTuples

public boolean isTuples()
Returns:
whether we are saving tuples


Copyright © 2004-2008 Stanford SUIF Compiler Group. All Rights Reserved.