org.apache.derby.catalog.TypeDescriptor
| Modifier and Type | Method and Description |
|---|---|
| public DataTypeDescriptor | Returns: the output type descriptor (which may or may not be the same as the input type -- it is ok to simply return the input type). Null is returned if the aggregate cannot process the input type. Note that the output type may be a type that maps directly to a standard SQL (e.g. java.lang.Integer) or any other java type (e.g. java.sql.ResultSet, java.util.Vector, java.util.TimeZone or whatever). To construct a type descriptor see com.ibm.db2j.types.TypeFactory.the input type descriptor inputType, StringBuffer output parameter, filled in
with the class name that implements com.ibm.db2j.aggregates.Aggregator aggregatorClassName)Get the aggregator that performs the aggregation on the input datatype at execution time. |
| getAggregator | back to summary |
|---|---|
| public DataTypeDescriptor getAggregator(DataTypeDescriptor inputType, StringBuffer aggregatorClassName) throws StandardException Get the aggregator that performs the aggregation on the input datatype at execution time. If the input type can be handled, return a type descriptor with the resultant type information and fill in the string buffer with the name of the class that is used to perform the aggregation over the input type. If the aggregate cannot be performed on this type, then a null should be returned. The aggregator class must implement a zero argument constructor. The aggregator class can be the same class as the AggregateDefinition if it implements both interfaces. The result datatype may be the same as the input datatype or a different datatype. To create your own type descriptor to return to this method, see com.ibm.db2j.types.TypeFactory.
| |