Class CreateTableStmtBuilder

java.lang.Object
org.apache.drill.exec.store.jdbc.utils.CreateTableStmtBuilder

public class CreateTableStmtBuilder extends Object
  • Field Details

    • DEFAULT_VARCHAR_PRECISION

      public static final int DEFAULT_VARCHAR_PRECISION
      See Also:
  • Constructor Details

    • CreateTableStmtBuilder

      public CreateTableStmtBuilder(List<String> tableIdentifier, org.apache.calcite.sql.SqlDialect dialect)
  • Method Details

    • addColumn

      public void addColumn(MaterializedField field)
      Adds a column to the CREATE TABLE statement
    • build

      public String build()
      Generates the CREATE TABLE query.
      Returns:
      The create table query.