use of org.apache.ignite.client.proto.query.event.JdbcQueryMetadataRequest in project ignite-3 by apache.
the class JdbcResultSet method meta.
/**
* Returns columns metadata list.
*
* @return Results metadata.
* @throws SQLException On error.
*/
private List<JdbcColumnMeta> meta() throws SQLException {
if (finished && (!isQuery || autoClose)) {
throw new SQLException("Server cursor is already closed.", SqlStateCode.INVALID_CURSOR_STATE);
}
if (!metaInit) {
JdbcMetaColumnsResult res = qryHandler.queryMetadataAsync(new JdbcQueryMetadataRequest(cursorId)).join();
meta = res.meta();
metaInit = true;
}
return meta;
}
Aggregations