Class JdbcConnection
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sql.impl.CalciteConnectionWrapper
-
- org.apache.beam.sdk.extensions.sql.impl.JdbcConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.sql.Connection,java.sql.Wrapper,org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalciteConnection,org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.linq4j.QueryProvider
public class JdbcConnection extends CalciteConnectionWrapper
Beam JDBC Connection.Implements and delegates to
CalciteConnection, adds Beam-specific helper methods.BeamCalciteSchemaskeep reference to this connection. Pipeline options are stored here.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaPlusgetCurrentSchemaPlus()Calcite-createdSchemaPluswrapper for the current schema.@Nullable org.apache.beam.sdk.options.PipelineOptionsgetPipelineOptions()voidsetPipelineOptions(org.apache.beam.sdk.options.PipelineOptions pipelineOptions)voidsetPipelineOptionsMap(java.util.Map<java.lang.String,java.lang.String> pipelineOptionsMap)Only called from theBeamCalciteSchema.-
Methods inherited from class org.apache.beam.sdk.extensions.sql.impl.CalciteConnectionWrapper
abort, clearWarnings, close, commit, config, connection, createArrayOf, createBlob, createClob, createNClob, createPrepareContext, createQuery, createQuery, createSQLXML, createStatement, createStatement, createStatement, createStruct, execute, execute, executeQuery, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getProperties, getRootSchema, getSchema, getTransactionIsolation, getTypeFactory, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrap
-
-
-
-
Method Detail
-
setPipelineOptionsMap
public void setPipelineOptionsMap(java.util.Map<java.lang.String,java.lang.String> pipelineOptionsMap)
Only called from theBeamCalciteSchema. This is needed to enable the `SET pipelineOption = blah` syntax
-
setPipelineOptions
public void setPipelineOptions(org.apache.beam.sdk.options.PipelineOptions pipelineOptions)
-
getPipelineOptions
public @Nullable org.apache.beam.sdk.options.PipelineOptions getPipelineOptions()
-
getCurrentSchemaPlus
public org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaPlus getCurrentSchemaPlus()
Calcite-createdSchemaPluswrapper for the current schema.
-
-