Java Code Examples for org.apache.calcite.sql.SqlKind#OTHER_DDL

The following examples show how to use org.apache.calcite.sql.SqlKind#OTHER_DDL . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: quark   File: SqlShowViews.java    License: Apache License 2.0 5 votes vote down vote up
public SqlShowViews(
    SqlParserPos pos,
    SqlNode likePattern) {
  super(pos, likePattern);
  this.likePattern = likePattern;
  operator = new SqlSpecialOperator("SHOW_VIEW", SqlKind.OTHER_DDL);
  operatorString = "SHOW VIEW";
}
 
Example 2
Source Project: quark   File: SqlAlterQuarkDataSource.java    License: Apache License 2.0 5 votes vote down vote up
public SqlAlterQuarkDataSource(SqlParserPos pos,
                     SqlNodeList targetColumnList,
                     SqlNodeList sourceExpressionList,
                     SqlIdentifier identifier) {
  super(pos, targetColumnList, sourceExpressionList, identifier);
  operator = new SqlSpecialOperator("ALTER_DATASOURCE", SqlKind.OTHER_DDL);
  operatorString = "ALTER DATASOURCE";
}
 
Example 3
Source Project: quark   File: SqlAlterQuarkView.java    License: Apache License 2.0 5 votes vote down vote up
public SqlAlterQuarkView(SqlParserPos pos,
                     SqlNodeList targetColumnList,
                     SqlNodeList sourceExpressionList,
                     SqlIdentifier identifier) {
  super(pos, targetColumnList, sourceExpressionList, identifier);
  operator = new SqlSpecialOperator("ALTER_VIEW", SqlKind.OTHER_DDL);
  operatorString = "ALTER VIEW";
}
 
Example 4
Source Project: quark   File: SqlCreateQuarkDataSource.java    License: Apache License 2.0 5 votes vote down vote up
public SqlCreateQuarkDataSource(SqlParserPos pos,
                     SqlNodeList targetColumnList,
                     SqlNodeList sourceExpressionList,
                     SqlIdentifier identifier) {
  super(pos, targetColumnList, sourceExpressionList, identifier);
  operator = new SqlSpecialOperator("CREATE_DATASOURCE", SqlKind.OTHER_DDL);
  operatorString = "CREATE DATASOURCE";
}
 
Example 5
Source Project: quark   File: DDLParser.java    License: Apache License 2.0 4 votes vote down vote up
public DDLParserResult parse(String sql) {
  return new DDLParserResult(sql,
      SqlKind.OTHER_DDL, null, true);
}
 
Example 6
Source Project: quark   File: SqlDropQuark.java    License: Apache License 2.0 4 votes vote down vote up
@Override public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}
 
Example 7
Source Project: quark   File: SqlDropQuarkView.java    License: Apache License 2.0 4 votes vote down vote up
public SqlDropQuarkView(
    SqlParserPos pos,
    SqlIdentifier identifier) {
  super(pos, identifier);
  operator = new SqlSpecialOperator("DROP_VIEW", SqlKind.OTHER_DDL);
}
 
Example 8
Source Project: quark   File: SqlDropQuarkDataSource.java    License: Apache License 2.0 4 votes vote down vote up
public SqlDropQuarkDataSource(
    SqlParserPos pos,
    SqlIdentifier identifier) {
  super(pos, identifier);
  operator = new SqlSpecialOperator("DROP_DATASOURCE", SqlKind.OTHER_DDL);
}
 
Example 9
Source Project: quark   File: SqlShowQuark.java    License: Apache License 2.0 4 votes vote down vote up
public SqlShowQuark(SqlParserPos pos, SqlNode likePattern) {
  super(pos);
  operator = new SqlSpecialOperator("SHOW_DATASOURCE", SqlKind.OTHER_DDL);
  this.likePattern = likePattern;
}
 
Example 10
Source Project: quark   File: SqlShowQuark.java    License: Apache License 2.0 4 votes vote down vote up
@Override public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}
 
Example 11
Source Project: quark   File: SqlAlterQuark.java    License: Apache License 2.0 4 votes vote down vote up
@Override public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}
 
Example 12
Source Project: quark   File: SqlCreateQuarkView.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}