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

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

public class ConsumedVisitor
extends InheritableVisitor

Compute the Consumed columns for each type of operator.

Since:
1.0

Constructor Summary
ConsumedVisitor()
           
 
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 a)
          Compute the consumed columns for Aggregate operator.
 java.lang.Object visit(CartesianProduct cp)
          Compute the consumed columns for CartesianProduct operator.
 java.lang.Object visit(Composer comp)
          Compute the consumed columns for Composer operator.
 java.lang.Object visit(Distinct d)
          Compute the consumed columns for Distinct operator.
 java.lang.Object visit(Expose e)
          Compute the consumed columns for Expose operator.
 java.lang.Object visit(FOR f)
          Compute the consumed columns for FOR operator.
 java.lang.Object visit(Function f)
          Compute the consumed columns for Function operator.
 java.lang.Object visit(GroupBy gb)
          Compute the consumed columns for GroupBy operator.
 java.lang.Object visit(Intersection i)
          Compute the consumed columns for Intersection operator.
 java.lang.Object visit(Join j)
          Compute the consumed columns for Join operator.
 java.lang.Object visit(Merge m)
          Compute the consumed columns for Merge operator.
 java.lang.Object visit(NameColumn nc)
          Compute the consumed columns for NameColumn operator.
 java.lang.Object visit(NavCollection n)
          Compute the consumed columns for NavCollection operator.
 java.lang.Object visit(NavUnnest n)
          Compute the consumed columns for NavUnnest operator.
 java.lang.Object visit(OrderBy ob)
          Compute the consumed columns for OrderBy operator.
 java.lang.Object visit(OuterUnion ou)
          Compute the consumed columns for OuterUnion operator.
 java.lang.Object visit(Project p)
          Compute the consumed columns for Project operator.
 java.lang.Object visit(Select s)
          Compute the consumed columns for Select operator.
 java.lang.Object visit(Source s)
          Compute the consumed columns for Source operator.
 java.lang.Object visit(SQLStmt sqlstmt)
          Compute the consumed columns for SQLStmt operator.
 java.lang.Object visit(Tagger t)
          Compute the consumed columns for Tagger operator.
 java.lang.Object visit(Union u)
          Compute the consumed columns for Union operator.
 java.lang.Object visit(XATNode node)
          Compute the consumed columns for XATNode operator.
 java.lang.Object visit(XMLUnion xu)
          Compute the consumed 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

ConsumedVisitor

public ConsumedVisitor()
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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

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