|
|||||||||
| 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 AggregateDefinitioninputType - 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
TypeDescriptorpublic final void setMaxOrMin(boolean isMax)
public final boolean isMax()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||