public class GroupBy extends Object implements LanguageObject
LanguageObject.Util
Constructor and Description |
---|
GroupBy()
Constructs a default instance of this class.
|
GroupBy(List<? extends Expression> symbols)
Constructs an instance of this class from an ordered set of symbols.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
void |
addSymbol(Expression symbol)
Adds a new symbol to the list of symbols.
|
Object |
clone()
Return a deep copy of this object
|
boolean |
equals(Object obj)
Compare two GroupBys for equality.
|
int |
getCount()
Returns the number of symbols in the GROUP BY
|
List<Expression> |
getSymbols()
Returns an ordered list of the symbols in the GROUP BY
|
int |
hashCode()
Get hashcode for GroupBy.
|
boolean |
isRollup() |
void |
setRollup(boolean rollup) |
String |
toString()
Returns a string representation of an instance of this class.
|
public GroupBy()
public GroupBy(List<? extends Expression> symbols)
symbols
- The ordered list of ElementSymbol
spublic int getCount()
public List<Expression> getSymbols()
ElementSymbol
spublic void addSymbol(Expression symbol)
symbol
- Symbol to add to GROUP BYpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic Object clone()
clone
in interface LanguageObject
clone
in class Object
public boolean equals(Object obj)
public int hashCode()
public String toString()
public boolean isRollup()
public void setRollup(boolean rollup)
Copyright © 2020. All rights reserved.