edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator
Class FORImp

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
              |
              +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
                    |
                    +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.ColumnNameListImp
                          |
                          +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.FORImp

public class FORImp
extends ColumnNameListImp
implements FOR

Implementation for the interface For. The FOR is for XML Algebra. Op1[FOR(CB)[Op2[Correlated Operator[A],B]]] --> Op1[Groupby(CB, Op2[])[Operator[Cartesian[A,B]]]]

Since:
1.0
See Also:
Serialized Form

Field Summary
protected  XATTree xtreFunctions
           
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.ColumnNameListImp
vColNames
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
columnsFiltered, outputColumnName, xnodOwner, xtabOutput
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
stats, statsPresent
 
Constructor Summary
FORImp(XATNode xnodInit)
          Assign a node to this operator .
FORImp(XATNode xnodInit, XATTree xtreFuncInit)
          Assign a node to and a tree this operator .
 
Method Summary
 void accept(Visitor visitor)
          Used to implement a visitor pattern.
 XATTable getInnerSource()
          Gets inner data source.
 XATTable getOuterSource()
          Gets outer data source.
 XATTree getXtreFunctions()
          Get the tree for the FOR node.
 void setXtreFunctions(XATTree xat)
          Sets the tree for the FOR node.
 java.lang.String toString()
          returns a string representation
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.ColumnNameListImp
addColumnName, deleteColumnName, getColumnNames, insertColumnName, setColumnName, setColumnNames, updateColumnName
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
clone, getColumnsFiltered, getNode, getOutput, getOutputColumnName, getOutputDataSource, getOutputDataSources, getPrimaryDataSource, getPrimarySource, setDefaultProperties, setNode, setOutput, setOutputColumnName, setProperty
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
addStatistic, compareTo, getStatistics, isValidStatistic, setDefaultStatistics
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
addProperty, getProperties, getProperty, isValidPropertyName, setNewPropertyValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xtreFunctions

protected XATTree xtreFunctions
Constructor Detail

FORImp

public FORImp(XATNode xnodInit)
Assign a node to this operator .
Parameters:
xnodInit - edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNode
Since:
1.0

FORImp

public FORImp(XATNode xnodInit,
              XATTree xtreFuncInit)
Assign a node to and a tree this operator .
Parameters:
xnodInit - is the node
xtreFuncInit - is the tree
Since:
1.0
Method Detail

accept

public void accept(Visitor visitor)
Used to implement a visitor pattern.
Parameters:
visitor - for the visitor pattern
Since:
1.0

getInnerSource

public XATTable getInnerSource()
Gets inner data source.
Specified by:
getInnerSource in interface FOR
Returns:
inner data source.
Since:
1.0

getOuterSource

public XATTable getOuterSource()
Gets outer data source. It should be same as the getPrimarySource.
Specified by:
getOuterSource in interface FOR
Returns:
outer data source.
Since:
1.0

getXtreFunctions

public XATTree getXtreFunctions()
Get the tree for the FOR node.
Specified by:
getXtreFunctions in interface FOR
Returns:
the XAT tree.
Since:
1.0

setXtreFunctions

public void setXtreFunctions(XATTree xat)
Sets the tree for the FOR node.
Specified by:
setXtreFunctions in interface FOR
Parameters:
xat - is the For node tree.
Since:
1.0

toString

public java.lang.String toString()
returns a string representation
Overrides:
toString in class ColumnNameListImp
Returns:
java.lang.String
Since:
1.0