edu.wpi.cs.dsrg.xmldb.xat.common.operator.sqloperator
Interface GroupBy

All Known Implementing Classes:
GroupByImp

public interface GroupBy
extends SQLOperator, ColumnNameList

It will create groups for each unique value of the groupby columns. and for each group, it will apply the subquery to it.

Since:
1.0

Method Summary
 java.lang.String[] getColumnNames()
          Returns a list of column names.
 XATTree getXATTree()
          Gets a the XAT tree associtaed with this GroupBy (the groupby subquery).
 void setColumnNames(java.lang.String[] columns)
          Set the list of column names to be grouped based on.
 XATTree setXATTree(XATTree newXAT)
          Set the groupby XAT tree (subquery).
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.ColumnNameList
addColumnName, deleteColumnName, insertColumnName, setColumnName, updateColumnName
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperator
clone, getNode, getOutput, getOutputColumnName, getOutputDataSource, getOutputDataSources, getPrimaryDataSource, getPrimarySource, setNode, setOutput, setOutputColumnName
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObject
getStatistics, isValidStatistic
 
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATProperties
getProperties, getProperty, isValidPropertyName, setProperty
 

Method Detail

getColumnNames

public java.lang.String[] getColumnNames()
Returns a list of column names.
Specified by:
getColumnNames in interface ColumnNameList
Returns:
an array of column names.
Since:
1.0

getXATTree

public XATTree getXATTree()
Gets a the XAT tree associtaed with this GroupBy (the groupby subquery).
Returns:
the GroupBy XAT tree
Since:
1.0

setColumnNames

public void setColumnNames(java.lang.String[] columns)
Set the list of column names to be grouped based on.
Specified by:
setColumnNames in interface ColumnNameList
Parameters:
columns - is the list of column names to be grouped based on
Since:
1.0

setXATTree

public XATTree setXATTree(XATTree newXAT)
Set the groupby XAT tree (subquery).
Parameters:
newXAT - is the groupby XAT tree
Since:
1.0