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

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

public class ProducedVisitor
extends InheritableVisitor

This class is used to compute the Produce columns for each XATNode.

Since:
1.0

Constructor Summary
ProducedVisitor()
           
 
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 produced columns for Aggregate operator.
 java.lang.Object visit(CartesianProduct node)
          Compute the produced columns for CartesianProduct operator.
 java.lang.Object visit(Composer node)
          Compute the produced columns for Composer operator.
 java.lang.Object visit(Distinct node)
          Compute the produced columns for Distinct operator.
 java.lang.Object visit(Expose node)
          Compute the produced columns for Expose operator.
 java.lang.Object visit(FOR node)
          Compute the produced columns for FOR operator.
 java.lang.Object visit(Function node)
          Compute the produced columns for Function operator.
 java.lang.Object visit(GroupBy node)
          Compute the produced columns for GroupBy operator.
 java.lang.Object visit(Intersection node)
          Compute the produced columns for Intersection operator.
 java.lang.Object visit(Join node)
          Compute the produced columns for Join operator.
 java.lang.Object visit(NameColumn node)
          Compute the produced columns for NameColumn operator.
 java.lang.Object visit(NavCollection node)
          Compute the produced columns for NavCollection operator.
 java.lang.Object visit(NavUnnest node)
          Compute the produced columns for NavUnnest operator.
 java.lang.Object visit(OrderBy node)
          Compute the produced columns for OrderBy operator.
 java.lang.Object visit(OuterUnion node)
          Compute the produced columns for OuterUnion operator.
 java.lang.Object visit(Project node)
          Compute the produced columns for Project operator.
 java.lang.Object visit(Select node)
          Compute the produced columns for Select operator.
 java.lang.Object visit(Source node)
          Compute the produced columns for Source operator.
 java.lang.Object visit(SQLStmt node)
          Compute the produced columns for SQLStmt operator.
 java.lang.Object visit(Tagger node)
          Compute the produced columns for Tagger operator.
 java.lang.Object visit(Union node)
          Compute the produced columns for Union operator.
 java.lang.Object visit(VarStep node)
          Compute the produced columns for VarStep operator.
 java.lang.Object visit(XATNode node)
          Compute the produced columns for XATNode operator.
 java.lang.Object visit(XMLUnion node)
          Compute the produced 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

ProducedVisitor

public ProducedVisitor()
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 produced columns for Expose operator.
Parameters:
e - The Expose operator computing for.
Returns:
Object The object constining produced columns of given operator.
Since:
1.0
See Also:
Expose

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

public java.lang.Object visit(Composer node)
Compute the produced 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 produced columns for NavCollection operator.
Parameters:
n - The NavCollection operator computing for.
Returns:
Object The object constining produced columns of given operator.
Since:
1.0
See Also:
NavCollection

visit

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

visit

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

visit

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

visit

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

visit

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