java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.parser.SqlDdlNodes

public class SqlDdlNodes extends Object
Utilities concerning SqlNode for DDL.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalciteSchema
    childSchema(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalciteSchema rootSchema, List<String> path)
     
    static org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlNode
    column(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier name, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlDataTypeSpec dataType, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlNode comment)
    Creates a column declaration.
    dropTable(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.parser.SqlParserPos pos, boolean ifExists, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier name)
    Creates a DROP TABLE.
    static String
    name(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier id)
     
    static org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.util.Pair<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalciteSchema,String>
    schema(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalcitePrepare.Context context, boolean mutable, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier id)
    Returns the schema in which to create an object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • dropTable

      public static SqlDropTable dropTable(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.parser.SqlParserPos pos, boolean ifExists, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier name)
      Creates a DROP TABLE.
    • column

      public static org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlNode column(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier name, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlDataTypeSpec dataType, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlNode comment)
      Creates a column declaration.
    • schema

      public static org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.util.Pair<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalciteSchema,String> schema(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalcitePrepare.Context context, boolean mutable, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier id)
      Returns the schema in which to create an object.
    • childSchema

      public static @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalciteSchema childSchema(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalciteSchema rootSchema, List<String> path)
    • name

      public static String name(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier id)