|
|||||||||
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
public class MaxMinAggregateDefinition
Defintion for the MAX()/MIN() aggregates.
Field Summary | |
---|---|
private boolean |
isMax
|
Constructor Summary | |
---|---|
MaxMinAggregateDefinition()
Niladic constructor. |
Method Summary | |
---|---|
DataTypeDescriptor |
getAggregator(DataTypeDescriptor 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 DataTypeDescriptor getAggregator(DataTypeDescriptor 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, either a user type or a java.lang objectaggregatorClass
- 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 Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |