|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.rel.AggregateCall
public class AggregateCall
Call to an aggregation function within an AggregateRel
.
Field Summary | |
---|---|
private Aggregation |
aggregation
|
private List<Integer> |
argList
|
int[] |
args
Deprecated. todo: change all public uses to use getArgList() , then
make private |
private boolean |
distinct
|
private String |
name
|
private RelDataType |
type
|
Constructor Summary | |
---|---|
AggregateCall(Aggregation aggregation,
boolean distinct,
List<Integer> argList,
RelDataType type,
String name)
Creates an AggregateCall. |
Method Summary | |
---|---|
AggregateRelBase.AggCallBinding |
createBinding(AggregateRelBase aggregateRelBase)
Creates a binding of this call in the context of an AggregateRel ,
which can then be used to infer the return type. |
boolean |
equals(Object o)
|
Aggregation |
getAggregation()
Returns the Aggregation. |
List<Integer> |
getArgList()
Returns the ordinals of the arguments to this call. |
String |
getName()
Returns the name. |
RelDataType |
getType()
Returns the result type. |
int |
hashCode()
|
boolean |
isDistinct()
Returns whether this AggregateCall is distinct, as in
COUNT(DISTINCT empno) . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Aggregation aggregation
public final int[] args
getArgList()
, then
make private
private final boolean distinct
private final RelDataType type
private final String name
private final List<Integer> argList
Constructor Detail |
---|
public AggregateCall(Aggregation aggregation, boolean distinct, List<Integer> argList, RelDataType type, String name)
aggregation
- Aggregationdistinct
- Whether distinctargList
- List of ordinals of argumentstype
- Result typename
- NameMethod Detail |
---|
public final boolean isDistinct()
COUNT(DISTINCT empno)
.
public final Aggregation getAggregation()
public final List<Integer> getArgList()
The list is immutable.
public final RelDataType getType()
public String getName()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public AggregateRelBase.AggCallBinding createBinding(AggregateRelBase aggregateRelBase)
AggregateRel
,
which can then be used to infer the return type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |