| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final DataTypeDescriptor | Returns: the output Class (null if cannot operate on value expression of this type.the input type, either a user type or a java.lang object inputType, StringBuffer output parameter, filled in
with the class name that implements com.ibm.db2j.aggregates.Aggregator aggregatorClass)Implements org. Determines the result datatype. |
| private String | Returns: SumAggregator.CLASS_NAME/AvgAggregator.CLASS_NAMEReturn the aggregator class. |
| protected String | Returns: TypeCompiler.SUM_OP /TypeCompiler.AVG_OPReturn the arithmetic operator corresponding to this operation. |
| pack-priv final void |
| isSum | back to summary |
|---|---|
| private boolean isSum | |
| SumAvgAggregateDefinition | back to summary |
|---|---|
| public SumAvgAggregateDefinition() Niladic constructor. Does nothing. For ease Of use, only. | |
| getAggregator | back to summary |
|---|---|
| public final DataTypeDescriptor getAggregator(DataTypeDescriptor inputType, StringBuffer aggregatorClass) Implements org. Determines the result datatype. Accept NumberDataValues only. 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 plus(). In which case avg() would need divide().
| |
| getAggregatorClassName | back to summary |
|---|---|
| private String getAggregatorClassName() Return the aggregator class.
| |
| getOperator | back to summary |
|---|---|
| protected String getOperator() Return the arithmetic operator corresponding to this operation.
| |
| setSumOrAvg | back to summary |
|---|---|
| pack-priv final void setSumOrAvg(boolean isSum) This is set by the parser. | |