Package org.apache.druid.sql.avatica
Class DruidJdbcStatement
java.lang.Object
org.apache.druid.sql.avatica.AbstractDruidJdbcStatement
org.apache.druid.sql.avatica.DruidJdbcStatement
- All Implemented Interfaces:
Closeable,AutoCloseable
Represents Druid's version of the JDBC
Statement class:
can be executed multiple times, one after another, producing a
DruidJdbcResultSet for each execution. Thread safe, but
only when accessed sequentially by different request threads:
not designed for concurrent access as JDBC does not support
concurrent actions on the same statement.-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.apache.druid.sql.avatica.AbstractDruidJdbcStatement
connectionId, fetcherFactory, resultSet, sqlQuery, START_OFFSET, statementId, throwable -
Constructor Summary
ConstructorsConstructorDescriptionDruidJdbcStatement(String connectionId, int statementId, Map<String, Object> queryContext, Map<String, Object> defaultContext, SqlStatementFactory lifecycleFactory, DruidJdbcResultSet.ResultFetcherFactory fetcherFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(SqlQueryPlus queryPlus, long maxRowCount) org.apache.calcite.avatica.Meta.SignatureMethods inherited from class org.apache.druid.sql.avatica.AbstractDruidJdbcStatement
close, closeResultSet, createColumnMetaData, createSignature, getConnectionId, getCurrentOffset, getSqlQuery, getStatementId, isDone, nextFrame, requireResultSet
-
Field Details
-
queryContext
-
defaultContext
-
-
Constructor Details
-
DruidJdbcStatement
public DruidJdbcStatement(String connectionId, int statementId, Map<String, Object> queryContext, Map<String, Object> defaultContext, SqlStatementFactory lifecycleFactory, DruidJdbcResultSet.ResultFetcherFactory fetcherFactory)
-
-
Method Details
-
execute
-
getSignature
public org.apache.calcite.avatica.Meta.Signature getSignature()- Specified by:
getSignaturein classAbstractDruidJdbcStatement
-