| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | Returns: the H2 data type of the resultthe H2 data type of the parameters, inputTypes)This method must return the H2 data type, |
| public Object | |
| public default void | init(Connection
a connection to the database conn)This method is called when the aggregate function is used. |
| add | back to summary |
|---|---|
| public void add(Object value) throws SQLException This method is called once for each row. If the aggregate function is called with multiple parameters, those are passed as array.
| |
| getInternalType | back to summary |
|---|---|
| public int getInternalType(int[] inputTypes) throws SQLException This method must return the H2 data type,
| |
| getResult | back to summary |
|---|---|
| public Object getResult() throws SQLException This method returns the computed aggregate value. This method must preserve previously added values and must be able to reevaluate result if more values were added since its previous invocation.
| |
| init | back to summary |
|---|---|
| public default void init(Connection conn) throws SQLException This method is called when the aggregate function is used. A new object is created for each invocation.
| |