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_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. BeamCalciteSchemas keep reference to this connection. Pipeline options are stored here.

  • Method Details

    • getExtraOperatorTable

      public org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.util.ListSqlOperatorTable getExtraOperatorTable()
      The session-scoped, mutable operator table chained at the front of the planner's operator table. Add custom SqlOperators here to make them resolvable in subsequent SQL.
    • 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 @Nullable PipelineOptions getPipelineOptions()
    • getCurrentSchemaPlus

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