Package org.apache.druid.sql.avatica
Class DruidJdbcPreparedStatement
java.lang.Object
org.apache.druid.sql.avatica.AbstractDruidJdbcStatement
org.apache.druid.sql.avatica.DruidJdbcPreparedStatement
- All Implemented Interfaces:
Closeable,AutoCloseable
The Druid implementation of the server-side representation of the
JDBC
PreparedStatement class. A prepared statement can be prepared
once with a query, then executed any number of times, typically with
parameter values. No parameters are provided during prepare, though we do
learn the parameter definitions passed back to the client and used by
Avatica for serialization. Each execution produces a
DruidJdbcResultSet. Only one execution is active at a time.-
Field Summary
Fields inherited from class org.apache.druid.sql.avatica.AbstractDruidJdbcStatement
connectionId, fetcherFactory, resultSet, sqlQuery, START_OFFSET, statementId, throwable -
Constructor Summary
ConstructorsConstructorDescriptionDruidJdbcPreparedStatement(String connectionId, int statementId, PreparedStatement stmt, long maxRowCount, DruidJdbcResultSet.ResultFetcherFactory fetcherFactory) -
Method Summary
Methods inherited from class org.apache.druid.sql.avatica.AbstractDruidJdbcStatement
closeResultSet, createColumnMetaData, createSignature, getConnectionId, getCurrentOffset, getSqlQuery, getStatementId, isDone, nextFrame, requireResultSet
-
Constructor Details
-
DruidJdbcPreparedStatement
public DruidJdbcPreparedStatement(String connectionId, int statementId, PreparedStatement stmt, long maxRowCount, DruidJdbcResultSet.ResultFetcherFactory fetcherFactory)
-
-
Method Details
-
prepare
public void prepare() -
getSignature
public org.apache.calcite.avatica.Meta.Signature getSignature()- Specified by:
getSignaturein classAbstractDruidJdbcStatement
-
execute
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractDruidJdbcStatement
-