|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.test.db.TestSpatial.TableEnvelope
public static class TestSpatial.TableEnvelope
An aggregate function that calculates the envelope.
Constructor Summary | |
---|---|
TestSpatial.TableEnvelope()
|
Method Summary | |
---|---|
void |
add(java.lang.Object value)
This method is called once for each row. |
int |
getInternalType(int[] inputTypes)
This method must return the H2 data type, Value ,
of the aggregate function, given the H2 data type of the input data. |
java.lang.Object |
getResult()
This method returns the computed aggregate value. |
void |
init(java.sql.Connection conn)
This method is called when the aggregate function is used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestSpatial.TableEnvelope()
Method Detail |
---|
public int getInternalType(int[] inputTypes) throws java.sql.SQLException
Aggregate
Value
,
of the aggregate function, given the H2 data type of the input data.
The method should check here if the number of parameters
passed is correct, and if not it should throw an exception.
getInternalType
in interface Aggregate
inputTypes
- the H2 data type of the parameters,
java.sql.SQLException
- if the number/type of parameters passed is incorrectpublic void init(java.sql.Connection conn) throws java.sql.SQLException
Aggregate
init
in interface Aggregate
conn
- a connection to the database
java.sql.SQLException
public void add(java.lang.Object value) throws java.sql.SQLException
Aggregate
add
in interface Aggregate
value
- the value(s) for this row
java.sql.SQLException
public java.lang.Object getResult() throws java.sql.SQLException
Aggregate
getResult
in interface Aggregate
java.sql.SQLException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |