Class JdbcConnection

java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.CalciteConnectionWrapper
org.apache.beam.sdk.extensions.sql.impl.JdbcConnection
All Implemented Interfaces:
AutoCloseable, Connection, Wrapper, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.jdbc.CalciteConnection, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.linq4j.QueryProvider

public class JdbcConnection extends CalciteConnectionWrapper
Beam JDBC Connection.

Implements and delegates to CalciteConnection, adds Beam-specific helper methods. BeamCalciteSchemas keep reference to this connection. Pipeline options are stored here.

  • Method Details

    • setPipelineOptionsMap

      public void setPipelineOptionsMap(Map<String,String> pipelineOptionsMap)
      Only called from the BeamCalciteSchema. This is needed to enable the `SET pipelineOption = blah` syntax
    • setPipelineOptions

      public void setPipelineOptions(PipelineOptions pipelineOptions)
    • getPipelineOptions

      public PipelineOptions getPipelineOptions()
    • getCurrentSchemaPlus

      public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaPlus getCurrentSchemaPlus()
      Calcite-created SchemaPlus wrapper for the current schema.