public interface CalciteConnection extends java.sql.Connection, QueryProvider
JDBC connection
allows schemas to be defined
dynamically.
You can start off with an empty connection (no schemas), define one or two schemas, and start querying them.
Since a CalciteConnection
implements the linq4j
QueryProvider
interface, you can use a connection to execute
expression trees as queries.
Modifier and Type | Method and Description |
---|---|
CalciteConnectionConfig |
config() |
CalcitePrepare.Context |
createPrepareContext()
Creates a context for preparing a statement for execution.
|
java.util.Properties |
getProperties()
Returns an instance of the connection properties.
|
SchemaPlus |
getRootSchema()
Returns the root schema.
|
java.lang.String |
getSchema() |
JavaTypeFactory |
getTypeFactory()
Returns the type factory.
|
void |
setSchema(java.lang.String schema) |
abort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
createQuery, createQuery, execute, execute, executeQuery
SchemaPlus getRootSchema()
You can define objects (such as relations) in this schema, and also nested schemas.
JavaTypeFactory getTypeFactory()
java.util.Properties getProperties()
NOTE: The resulting collection of properties is same collection used by the connection, and is writable, but behavior if you modify the collection is undefined. Some implementations might, for example, see a modified property, but only if you set it before you create a statement. We will remove this method when there are better implementations of stateful connections and configuration.
void setSchema(java.lang.String schema) throws java.sql.SQLException
setSchema
in interface java.sql.Connection
java.sql.SQLException
java.lang.String getSchema() throws java.sql.SQLException
getSchema
in interface java.sql.Connection
java.sql.SQLException
CalciteConnectionConfig config()
CalcitePrepare.Context createPrepareContext()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.