@AutoService(value=java.sql.Driver.class)
public class JdbcDriver
extends org.apache.calcite.jdbc.Driver
Connection URLs have this form:
jdbc:beam:param1=value1;param2=value2;param3=value3
The querystring-style parameters are parsed as PipelineOptions
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEAM_QUERYSTRING_PREFIX
Querystring parameters that begin with
"beam." will be interpreted as PipelineOptions . |
static java.lang.String |
CONNECT_STRING_PREFIX |
static JdbcDriver |
INSTANCE |
Constructor and Description |
---|
JdbcDriver() |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info) |
static org.apache.calcite.jdbc.CalciteConnection |
connect(TableProvider tableProvider) |
protected java.lang.String |
getConnectStringPrefix() |
static org.apache.calcite.schema.SchemaPlus |
getDefaultSchema(org.apache.calcite.jdbc.CalciteConnection connection) |
createDriverVersion, createHandler, createMeta, createPrepareFactory, getConnectionProperties, getFactoryClassName
public static final JdbcDriver INSTANCE
public static final java.lang.String CONNECT_STRING_PREFIX
public static final java.lang.String BEAM_QUERYSTRING_PREFIX
"beam."
will be interpreted as PipelineOptions
.protected java.lang.String getConnectStringPrefix()
getConnectStringPrefix
in class org.apache.calcite.jdbc.Driver
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
connect
in interface java.sql.Driver
connect
in class org.apache.calcite.avatica.UnregisteredDriver
java.sql.SQLException
public static org.apache.calcite.jdbc.CalciteConnection connect(TableProvider tableProvider)
public static org.apache.calcite.schema.SchemaPlus getDefaultSchema(org.apache.calcite.jdbc.CalciteConnection connection)