use of org.apache.ignite.internal.processors.query.h2.opt.GridH2ValueCacheObject in project ignite by apache.
the class H2ResultSetIterator method readRow.
/**
* @throws SQLException On error.
*/
private void readRow() throws SQLException {
if (res != null) {
Value[] values = res.currentRow();
for (int c = 0; c < row.length; c++) {
Value val = values[c];
if (val instanceof GridH2ValueCacheObject) {
GridH2ValueCacheObject valCacheObj = (GridH2ValueCacheObject) values[c];
row[c] = valCacheObj.getObject(true);
} else
row[c] = val.getObject();
}
} else {
for (int c = 0; c < row.length; c++) row[c] = data.getObject(c + 1);
}
}
Aggregations