|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.MaxMinAggregateDefinition
Defintion for the MAX()/MIN() aggregates.
Field Summary | |
private boolean |
isMax
|
Constructor Summary | |
MaxMinAggregateDefinition()
Niladic constructor. |
Method Summary | |
TypeDescriptor |
getAggregator(TypeDescriptor inputType,
java.lang.StringBuffer aggregatorClass)
Determines the result datatype. |
boolean |
isMax()
Return if the aggregator class is for min/max. |
void |
setMaxOrMin(boolean isMax)
This is set by the parser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean isMax
Constructor Detail |
public MaxMinAggregateDefinition()
Method Detail |
public final TypeDescriptor getAggregator(TypeDescriptor inputType, java.lang.StringBuffer aggregatorClass)
Note: In the future you should be able to do a sum user data types. One option would be to run sum on anything that implements divide().
getAggregator
in interface AggregateDefinition
inputType
- the input type descriptoraggregatorClass
- output parameter, filled in
with the class name that implements com.ibm.db2j.aggregates.Aggregator
TypeDescriptor
public final void setMaxOrMin(boolean isMax)
public final boolean isMax()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |