| java.lang.Object org.hsqldb.SetFunction
SetFunction | public class SetFunction (Code) | | Implementation of SQL set functions (currently only aggregate functions).
This reduces temporary Object creation by SUM and AVG functions for
INTEGER and narrower types.
author: fredt@users author: boucherb@users version: 1.7.3 since: 1.7.2 |
Field Summary | |
long | hi | long | lo | static BigInteger | multiplier Maintain the sum of multiple long values without creating a new
BigInteger object for each addition. |
Constructor Summary | |
| SetFunction(int setType, int type, boolean isDistinct) |
Method Summary | |
void | add(Session session, Object item) | void | addLong(long value) | BigInteger | getLongSum() | static int | getType(int setType, int type) During parsing and before an instance of SetFunction is created,
getType is called with type parameter set to correct type when main
SELECT statements contain aggregates. | Object | getValue() |
multiplier | static BigInteger multiplier(Code) | | Maintain the sum of multiple long values without creating a new
BigInteger object for each addition.
|
SetFunction | SetFunction(int setType, int type, boolean isDistinct)(Code) | | |
addLong | void addLong(long value)(Code) | | |
getType | static int getType(int setType, int type) throws HsqlException(Code) | | During parsing and before an instance of SetFunction is created,
getType is called with type parameter set to correct type when main
SELECT statements contain aggregates. It is called with Types.NULL
when SELECT statements within INSERT or UPDATE contian aggregates.
|
|
|