|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.query.sql.lang.GroupBy
public class GroupBy
This class represents the GROUP BY clause of a query, which defines the expressions that should be used for grouping the results of the query. The groups produced in the query are grouped on all symbols listed contained in the GROUP BY clause. The GROUP BY clause may not contain aliased elements, expressions, or constants.
Constructor Summary | |
---|---|
GroupBy()
Constructs a default instance of this class. |
|
GroupBy(java.util.List symbols)
Constructs an instance of this class from an ordered set of symbols. |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
void |
addSymbol(Expression symbol)
Adds a new symbol to the list of symbols. |
java.lang.Object |
clone()
Return a deep copy of this object |
boolean |
equals(java.lang.Object obj)
Compare two GroupBys for equality. |
int |
getCount()
Returns the number of symbols in the GROUP BY |
java.util.List |
getSymbols()
Returns an ordered list of the symbols in the GROUP BY |
int |
hashCode()
Get hashcode for GroupBy. |
void |
replaceSymbols(java.util.Collection symbols)
Replaces the existing set of symbols with a new collection of symbols |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GroupBy()
public GroupBy(java.util.List symbols)
symbols
- The ordered list of ElementSymbol
sMethod Detail |
---|
public int getCount()
public java.util.List getSymbols()
ElementSymbol
spublic void addSymbol(Expression symbol)
symbol
- Symbol to add to GROUP BYpublic void replaceSymbols(java.util.Collection symbols)
symbols
- Collection of ElementSymbol
s
to replace current symbols withpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
clone
in interface LanguageObject
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |