public class DruidJdbcResultSet extends Object implements Closeable
DirectStatement class. Even if result
set is for a PreparedStatement, the result set itself uses
a Druid DirectStatement which includes the parameter values
given for the execution. This allows Druid's planner to use the "query
optimized" form of parameter substitution: we replan the query for
each execution with the parameter values.
Avatica returns results in Meta.Frame objects as batches of
rows. The result set uses the TYPE_FORWARD_ONLY execution model:
the application can only read results sequentially, the application
can't jump around or read backwards. As a result, the enclosing
statement closes the result set at EOF to release resources early.
| Constructor and Description |
|---|
DruidJdbcResultSet(AbstractDruidJdbcStatement jdbcStatement,
DirectStatement stmt,
long maxRowCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
execute() |
long |
getCurrentOffset() |
org.apache.calcite.avatica.Meta.Signature |
getSignature() |
boolean |
isDone() |
org.apache.calcite.avatica.Meta.Frame |
nextFrame(long fetchOffset,
int fetchMaxRowCount) |
public DruidJdbcResultSet(AbstractDruidJdbcStatement jdbcStatement, DirectStatement stmt, long maxRowCount)
public void execute()
public boolean isDone()
public org.apache.calcite.avatica.Meta.Signature getSignature()
public org.apache.calcite.avatica.Meta.Frame nextFrame(long fetchOffset,
int fetchMaxRowCount)
public long getCurrentOffset()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.