Class SqlShowDatabases

  • All Implemented Interfaces:
    Cloneable

    public class SqlShowDatabases
    extends SqlShowCall
    SHOW Databases sql call. The full syntax for show databases is as followings:
    
     SHOW DATABASES [ ( FROM | IN ) catalog_name] [ [NOT] (LIKE | ILIKE)
     <sql_like_pattern> ] statement
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.calcite.sql.SqlSpecialOperator OPERATOR  
      • Fields inherited from class org.apache.calcite.sql.SqlNode

        EMPTY_ARRAY, pos
    • Constructor Summary

      Constructors 
      Constructor Description
      SqlShowDatabases​(org.apache.calcite.sql.parser.SqlParserPos pos, String preposition, org.apache.calcite.sql.SqlIdentifier catalogName, String likeType, org.apache.calcite.sql.SqlCharStringLiteral likeLiteral, boolean notLike)  
    • Field Detail

      • OPERATOR

        public static final org.apache.calcite.sql.SqlSpecialOperator OPERATOR
    • Constructor Detail

      • SqlShowDatabases

        public SqlShowDatabases​(org.apache.calcite.sql.parser.SqlParserPos pos,
                                String preposition,
                                org.apache.calcite.sql.SqlIdentifier catalogName,
                                String likeType,
                                org.apache.calcite.sql.SqlCharStringLiteral likeLiteral,
                                boolean notLike)
                         throws ParseException
        Throws:
        ParseException
    • Method Detail

      • getCatalogName

        public String getCatalogName()
      • getOperator

        public org.apache.calcite.sql.SqlOperator getOperator()
        Specified by:
        getOperator in class SqlShowCall