edu.wpi.cs.dsrg.xmldb.xat.component.schemacleanup
Class ModifiedVisitor

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.component.schemacleanup.ModifiedVisitor

public class ModifiedVisitor
extends InheritableVisitor

This class is used to compute the consumed columns for each type of operator.

Since:
1.0

Constructor Summary
ModifiedVisitor()
           
 
Method Summary
 java.lang.Object dispatch()
          To visit a null object.
 java.lang.Object dispatch(java.lang.Object o)
          To visit any object.
static boolean isDebug()
          Get the value of the propertity "DEBUG_SchemaCleanUp".
 java.lang.Object visit(Aggregate node)
          Compute the modified columns for Aggregate operator.
 java.lang.Object visit(CartesianProduct node)
          Compute the modified columns for CartesianProduct operator.
 java.lang.Object visit(Composer node)
          Compute the modified columns for Composer operator.
 java.lang.Object visit(Distinct node)
          Compute the modified columns for Distinct operator.
 java.lang.Object visit(Expose node)
          Compute the modified columns for Expose operator.
 java.lang.Object visit(FOR node)
          Compute the modifeed columns for FOR operator.
 java.lang.Object visit(Function node)
          Compute the modified columns for Function operator.
 java.lang.Object visit(GroupBy node)
          Compute the modified columns for GroupBy operator.
 java.lang.Object visit(Intersection node)
          Compute the modified columns for Intersection operator.
 java.lang.Object visit(Join node)
          Compute the modified columns for Join operator.
 java.lang.Object visit(Merge node)
          Compute the modified columns for Merge operator.
 java.lang.Object visit(NameColumn node)
          Compute the modified columns for NameColumn operator.
 java.lang.Object visit(NavCollection node)
          Compute the modified columns for NavCollection operator.
 java.lang.Object visit(NavigationStep node)
          Compute the modified columns for NavigationStep operator.
 java.lang.Object visit(NavUnnest node)
          Compute the modified columns for NavUnnest operator.
 java.lang.Object visit(OrderBy node)
          Compute the modified columns for OrderBy operator.
 java.lang.Object visit(OuterUnion node)
          Compute the modified columns for OuterUnion operator.
 java.lang.Object visit(Project node)
          Compute the modified columns for Project operator.
 java.lang.Object visit(Select node)
          Compute the modified columns for Select operator.
 java.lang.Object visit(Source node)
          Compute the modified columns for Source operator.
 java.lang.Object visit(SQLStmt node)
          Compute the modified columns for SQLStmt operator.
 java.lang.Object visit(Tagger node)
          Compute the modified columns for Tagger operator.
 java.lang.Object visit(Union node)
          Compute the modified columns for Union operator.
 java.lang.Object visit(XATNode node)
          Compute the modified columns for operator in given XATNode.
 java.lang.Object visit(XMLUnion node)
          Compute the modified columns for XMLUnion operator.
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor
getAncestors, getMethod, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedVisitor

public ModifiedVisitor()
Method Detail

dispatch

public java.lang.Object dispatch()
Description copied from class: InheritableVisitor
To visit a null object.
Overrides:
dispatch in class InheritableVisitor

dispatch

public java.lang.Object dispatch(java.lang.Object o)
Description copied from class: InheritableVisitor
To visit any object.
Overrides:
dispatch in class InheritableVisitor

isDebug

public static boolean isDebug()
Get the value of the propertity "DEBUG_SchemaCleanUp".
Returns:
boolean True: With debug information. False: No debug information.
Since:
1.0

visit

public java.lang.Object visit(Expose node)
Compute the modified columns for Expose operator.
Parameters:
e - The Expose operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Expose

visit

public java.lang.Object visit(FOR node)
Compute the modifeed columns for FOR operator.
Parameters:
f - The FOR operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
FOR

visit

public java.lang.Object visit(Function node)
Compute the modified columns for Function operator.
Parameters:
f - The Function operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Function

visit

public java.lang.Object visit(Merge node)
Compute the modified columns for Merge operator.
Parameters:
m - The Merge operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Merge

visit

public java.lang.Object visit(NameColumn node)
Compute the modified columns for NameColumn operator.
Parameters:
nc - The NameColumn operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
NameColumn

visit

public java.lang.Object visit(Source node)
Compute the modified columns for Source operator.
Parameters:
ou - The Source operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Source

visit

public java.lang.Object visit(SQLStmt node)
Compute the modified columns for SQLStmt operator.
Parameters:
ou - The SQLStmt operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
SQLStmt

visit

public java.lang.Object visit(CartesianProduct node)
Compute the modified columns for CartesianProduct operator.
Parameters:
cp - The CartesianProduct operator computing for.
Returns:
Object The HashSet constining modified columns of given operator.
Since:
1.0
See Also:
CartesianProduct

visit

public java.lang.Object visit(Distinct node)
Compute the modified columns for Distinct operator.
Parameters:
d - The Distinct operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Distinct

visit

public java.lang.Object visit(GroupBy node)
Compute the modified columns for GroupBy operator.
Parameters:
gb - The GroupBy operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
GroupBy

visit

public java.lang.Object visit(Intersection node)
Compute the modified columns for Intersection operator.
Parameters:
i - The Intersection operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Intersection

visit

public java.lang.Object visit(Join node)
Compute the modified columns for Join operator.
Parameters:
j - The Join operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Join

visit

public java.lang.Object visit(OrderBy node)
Compute the modified columns for OrderBy operator.
Parameters:
ob - The OrderBy operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
OrderBy

visit

public java.lang.Object visit(OuterUnion node)
Compute the modified columns for OuterUnion operator.
Parameters:
ou - The OuterUnion operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
OuterUnion

visit

public java.lang.Object visit(Project node)
Compute the modified columns for Project operator.
Parameters:
ou - The Project operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Project

visit

public java.lang.Object visit(Select node)
Compute the modified columns for Select operator.
Parameters:
ou - The Select operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Select

visit

public java.lang.Object visit(Union node)
Compute the modified columns for Union operator.
Parameters:
ou - The Union operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Union

visit

public java.lang.Object visit(Aggregate node)
Compute the modified columns for Aggregate operator.
Parameters:
a - The Aggregate operator computing for.
Returns:
Object The HashSet constining modified columns of given operator.
Since:
1.0
See Also:
Aggregate

visit

public java.lang.Object visit(Composer node)
Compute the modified columns for Composer operator.
Parameters:
c - The Composer operator computing for.
Returns:
Object
Since:
1.0
See Also:
Composer

visit

public java.lang.Object visit(NavCollection node)
Compute the modified columns for NavCollection operator.
Parameters:
n - The NavCollection operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
NavCollection

visit

public java.lang.Object visit(NavigationStep node)
Compute the modified columns for NavigationStep operator.
Parameters:
n - The NavigationStep operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
NavUnnest

visit

public java.lang.Object visit(NavUnnest node)
Compute the modified columns for NavUnnest operator.
Parameters:
n - The NavUnnest operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
NavUnnest

visit

public java.lang.Object visit(Tagger node)
Compute the modified columns for Tagger operator.
Parameters:
ou - The Tagger operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
Tagger

visit

public java.lang.Object visit(XMLUnion node)
Compute the modified columns for XMLUnion operator.
Parameters:
ou - The XMLUnion operator computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
XMLUnion

visit

public java.lang.Object visit(XATNode node)
Compute the modified columns for operator in given XATNode.
Parameters:
ou - The XATNode computing for.
Returns:
Object The object constining modified columns of given operator.
Since:
1.0
See Also:
XATNode