Package org.apache.calcite.jdbc
Class KuduCalciteConnectionImpl
- java.lang.Object
-
- org.apache.calcite.avatica.AvaticaConnection
-
- org.apache.calcite.jdbc.KuduCalciteConnectionImpl
-
- All Implemented Interfaces:
AutoCloseable
,Connection
,Wrapper
,org.apache.calcite.jdbc.CalciteConnection
,org.apache.calcite.linq4j.QueryProvider
public class KuduCalciteConnectionImpl extends org.apache.calcite.avatica.AvaticaConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.avatica.AvaticaConnection
org.apache.calcite.avatica.AvaticaConnection.CallableWithoutException<T extends Object>, org.apache.calcite.avatica.AvaticaConnection.Trojan
-
-
Field Summary
Fields Modifier and Type Field Description org.apache.calcite.adapter.java.JavaTypeFactory
typeFactory
-
Fields inherited from class org.apache.calcite.avatica.AvaticaConnection
driver, factory, handle, HELPER, id, info, maxRetriesPerExecute, meta, metaData, NUM_EXECUTE_RETRIES_DEFAULT, NUM_EXECUTE_RETRIES_KEY, PLAN_COLUMN_NAME, properties, ROWCOUNT_COLUMN_NAME, statementCount, statementMap, transparentReconnectEnabled
-
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KuduCalciteConnectionImpl(org.apache.calcite.jdbc.Driver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info, org.apache.calcite.jdbc.CalciteSchema rootSchema, org.apache.calcite.adapter.java.JavaTypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.config.CalciteConnectionConfig
config()
org.apache.calcite.DataContext
createDataContext(Map<String,Object> arg0, org.apache.calcite.jdbc.CalciteSchema arg1)
org.apache.calcite.jdbc.CalcitePrepare.Context
createPrepareContext()
<T extends Object>
org.apache.calcite.linq4j.Queryable<T>createQuery(org.apache.calcite.linq4j.tree.Expression arg0, Class<T> arg1)
<T extends Object>
org.apache.calcite.linq4j.Queryable<T>createQuery(org.apache.calcite.linq4j.tree.Expression arg0, Type arg1)
org.apache.calcite.jdbc.CalciteStatement
createStatement(int arg0, int arg1, int arg2)
<T extends Object>
org.apache.calcite.linq4j.Enumerable<T>enumerable(org.apache.calcite.avatica.Meta.StatementHandle arg0, org.apache.calcite.jdbc.CalcitePrepare.CalciteSignature<T> arg1, List<org.apache.calcite.avatica.remote.TypedValue> arg2)
<T extends Object>
Texecute(org.apache.calcite.linq4j.tree.Expression arg0, Class<T> arg1)
<T extends Object>
Texecute(org.apache.calcite.linq4j.tree.Expression arg0, Type arg1)
<T extends Object>
org.apache.calcite.linq4j.Enumerator<T>executeQuery(org.apache.calcite.linq4j.Queryable<T> arg0)
AtomicBoolean
getCancelFlag(org.apache.calcite.avatica.Meta.StatementHandle arg0)
KuduMetaImpl
getMeta()
Properties
getProperties()
org.apache.calcite.schema.SchemaPlus
getRootSchema()
org.apache.calcite.adapter.java.JavaTypeFactory
getTypeFactory()
org.apache.calcite.jdbc.CalcitePreparedStatement
prepareStatement(String arg0, int arg1, int arg2, int arg3)
<T extends Object>
Tunwrap(Class<T> arg0)
-
Methods inherited from class org.apache.calcite.avatica.AvaticaConnection
abort, checkOpen, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createResultSet, createSQLXML, createStatement, createStatement, createStruct, createTrojan, executeBatchUpdateInternal, executeQueryInternal, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getKerberosConnection, getMetaData, getNetworkTimeout, getSchema, getService, getTimeZone, getTransactionIsolation, getTypeMap, getWarnings, invokeWithRetries, isClosed, isReadOnly, isValid, isWrapperFor, lookupStatement, nativeSQL, openConnection, prepareAndExecuteInternal, prepareAndUpdateBatch, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setKerberosConnection, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setService, setTransactionIsolation, setTypeMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.Connection
abort, beginRequest, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStruct, endRequest, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid, setTransactionIsolation, setTypeMap
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor
-
-
-
-
Constructor Detail
-
KuduCalciteConnectionImpl
protected KuduCalciteConnectionImpl(org.apache.calcite.jdbc.Driver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info, org.apache.calcite.jdbc.CalciteSchema rootSchema, org.apache.calcite.adapter.java.JavaTypeFactory typeFactory)
-
-
Method Detail
-
getMeta
public KuduMetaImpl getMeta()
-
config
public org.apache.calcite.config.CalciteConnectionConfig config()
- Specified by:
config
in interfaceorg.apache.calcite.jdbc.CalciteConnection
- Overrides:
config
in classorg.apache.calcite.avatica.AvaticaConnection
-
createPrepareContext
public org.apache.calcite.jdbc.CalcitePrepare.Context createPrepareContext()
- Specified by:
createPrepareContext
in interfaceorg.apache.calcite.jdbc.CalciteConnection
-
unwrap
public <T extends Object> T unwrap(Class<T> arg0) throws SQLException
- Specified by:
unwrap
in interfaceWrapper
- Overrides:
unwrap
in classorg.apache.calcite.avatica.AvaticaConnection
- Throws:
SQLException
-
createStatement
public org.apache.calcite.jdbc.CalciteStatement createStatement(int arg0, int arg1, int arg2) throws SQLException
- Specified by:
createStatement
in interfaceConnection
- Overrides:
createStatement
in classorg.apache.calcite.avatica.AvaticaConnection
- Throws:
SQLException
-
prepareStatement
public org.apache.calcite.jdbc.CalcitePreparedStatement prepareStatement(String arg0, int arg1, int arg2, int arg3) throws SQLException
- Specified by:
prepareStatement
in interfaceConnection
- Overrides:
prepareStatement
in classorg.apache.calcite.avatica.AvaticaConnection
- Throws:
SQLException
-
getCancelFlag
public AtomicBoolean getCancelFlag(org.apache.calcite.avatica.Meta.StatementHandle arg0) throws org.apache.calcite.avatica.NoSuchStatementException
- Overrides:
getCancelFlag
in classorg.apache.calcite.avatica.AvaticaConnection
- Throws:
org.apache.calcite.avatica.NoSuchStatementException
-
getRootSchema
public org.apache.calcite.schema.SchemaPlus getRootSchema()
- Specified by:
getRootSchema
in interfaceorg.apache.calcite.jdbc.CalciteConnection
-
getTypeFactory
public org.apache.calcite.adapter.java.JavaTypeFactory getTypeFactory()
- Specified by:
getTypeFactory
in interfaceorg.apache.calcite.jdbc.CalciteConnection
-
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interfaceorg.apache.calcite.jdbc.CalciteConnection
-
createQuery
public <T extends Object> org.apache.calcite.linq4j.Queryable<T> createQuery(org.apache.calcite.linq4j.tree.Expression arg0, Class<T> arg1)
- Specified by:
createQuery
in interfaceorg.apache.calcite.linq4j.QueryProvider
-
createQuery
public <T extends Object> org.apache.calcite.linq4j.Queryable<T> createQuery(org.apache.calcite.linq4j.tree.Expression arg0, Type arg1)
- Specified by:
createQuery
in interfaceorg.apache.calcite.linq4j.QueryProvider
-
execute
public <T extends Object> T execute(org.apache.calcite.linq4j.tree.Expression arg0, Type arg1)
- Specified by:
execute
in interfaceorg.apache.calcite.linq4j.QueryProvider
-
execute
public <T extends Object> T execute(org.apache.calcite.linq4j.tree.Expression arg0, Class<T> arg1)
- Specified by:
execute
in interfaceorg.apache.calcite.linq4j.QueryProvider
-
executeQuery
public <T extends Object> org.apache.calcite.linq4j.Enumerator<T> executeQuery(org.apache.calcite.linq4j.Queryable<T> arg0)
- Specified by:
executeQuery
in interfaceorg.apache.calcite.linq4j.QueryProvider
-
enumerable
public <T extends Object> org.apache.calcite.linq4j.Enumerable<T> enumerable(org.apache.calcite.avatica.Meta.StatementHandle arg0, org.apache.calcite.jdbc.CalcitePrepare.CalciteSignature<T> arg1, List<org.apache.calcite.avatica.remote.TypedValue> arg2) throws SQLException
- Throws:
SQLException
-
-