Package io.deephaven.jdbc
Class DeephavenArray
java.lang.Object
io.deephaven.jdbc.DeephavenArray
- All Implemented Interfaces:
Array
public class DeephavenArray extends Object implements Array
A simple wrapper for when returning Deephaven array values from a ResultSet.
The API comtemplates arrays that are might be pulled from the server in pieces but since we have any given column row value in memory already, there is no provision for this here.
We don't support the ResultSet based slicing of arrays which seems to be designed for querying matrix-like table data (which could be efficiently sliced along multiple dimensions).
-
Method Summary
Modifier and Type Method Description void
free()
Object
getArray()
Object
getArray(long index, int count)
Object
getArray(long index, int count, Map<String,Class<?>> map)
Object
getArray(Map<String,Class<?>> map)
int
getBaseType()
String
getBaseTypeName()
ResultSet
getResultSet()
ResultSet
getResultSet(long index, int count)
ResultSet
getResultSet(long index, int count, Map<String,Class<?>> map)
ResultSet
getResultSet(Map<String,Class<?>> map)
String
toString()
-
Method Details
-
getBaseTypeName
- Specified by:
getBaseTypeName
in interfaceArray
-
getBaseType
public int getBaseType()- Specified by:
getBaseType
in interfaceArray
-
getArray
-
getArray
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
-
getResultSet
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
free
public void free() -
toString
-