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 File: SqlShowViews.java    From quark with 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 File: SqlAlterQuarkDataSource.java    From quark with 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 File: SqlAlterQuarkView.java    From quark with 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 File: SqlCreateQuarkDataSource.java    From quark with 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 File: DDLParser.java    From quark with 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 File: SqlDropQuark.java    From quark with Apache License 2.0 4 votes vote down vote up
@Override public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}
 
Example 7
Source File: SqlDropQuarkView.java    From quark with 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 File: SqlDropQuarkDataSource.java    From quark with 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 File: SqlShowQuark.java    From quark with 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 File: SqlShowQuark.java    From quark with Apache License 2.0 4 votes vote down vote up
@Override public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}
 
Example 11
Source File: SqlAlterQuark.java    From quark with Apache License 2.0 4 votes vote down vote up
@Override public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}
 
Example 12
Source File: SqlCreateQuarkView.java    From quark with Apache License 2.0 4 votes vote down vote up
@Override
public SqlKind getKind() {
  return SqlKind.OTHER_DDL;
}