public static class TestFunctions.MedianString extends java.lang.Object implements AggregateFunction
| Constructor and Description |
|---|
MedianString() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object value)
This method is called once for each row.
|
java.lang.Object |
getResult()
This method returns the computed aggregate value.
|
int |
getType(int[] inputType)
This method must return the SQL type of the method, given the SQL type of
the input data.
|
void |
init(java.sql.Connection conn)
This method is called when the aggregate function is used.
|
public void add(java.lang.Object value)
AggregateFunctionadd in interface AggregateFunctionvalue - the value(s) for this rowpublic java.lang.Object getResult()
AggregateFunctiongetResult in interface AggregateFunctionpublic int getType(int[] inputType)
AggregateFunctiongetType in interface AggregateFunctioninputType - the SQL type of the parameters, Typespublic void init(java.sql.Connection conn)
AggregateFunctioninit in interface AggregateFunctionconn - a connection to the database