Class SqlShowTables

  • All Implemented Interfaces:
    Cloneable

    public class SqlShowTables
    extends org.apache.calcite.sql.SqlCall
    SHOW Tables sql call.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.calcite.sql.SqlIdentifier databaseName  
      protected org.apache.calcite.sql.SqlCharStringLiteral likeLiteral  
      protected boolean notLike  
      static org.apache.calcite.sql.SqlSpecialOperator OPERATOR  
      protected String preposition  
      • Fields inherited from class org.apache.calcite.sql.SqlNode

        EMPTY_ARRAY, pos
    • Constructor Summary

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

      • OPERATOR

        public static final org.apache.calcite.sql.SqlSpecialOperator OPERATOR
      • databaseName

        protected final org.apache.calcite.sql.SqlIdentifier databaseName
      • preposition

        protected final String preposition
      • notLike

        protected final boolean notLike
      • likeLiteral

        protected final org.apache.calcite.sql.SqlCharStringLiteral likeLiteral
    • Constructor Detail

      • SqlShowTables

        public SqlShowTables​(org.apache.calcite.sql.parser.SqlParserPos pos)
      • SqlShowTables

        public SqlShowTables​(org.apache.calcite.sql.parser.SqlParserPos pos,
                             String preposition,
                             org.apache.calcite.sql.SqlIdentifier databaseName,
                             boolean notLike,
                             org.apache.calcite.sql.SqlCharStringLiteral likeLiteral)
    • Method Detail

      • getLikeSqlPattern

        public String getLikeSqlPattern()
      • isNotLike

        public boolean isNotLike()
      • getLikeLiteral

        public org.apache.calcite.sql.SqlCharStringLiteral getLikeLiteral()
      • isWithLike

        public boolean isWithLike()
      • getPreposition

        public String getPreposition()
      • getOperator

        public org.apache.calcite.sql.SqlOperator getOperator()
        Specified by:
        getOperator in class org.apache.calcite.sql.SqlCall
      • getOperandList

        public List<org.apache.calcite.sql.SqlNode> getOperandList()
        Specified by:
        getOperandList in class org.apache.calcite.sql.SqlCall
      • fullDatabaseName

        public String[] fullDatabaseName()
      • unparse

        public void unparse​(org.apache.calcite.sql.SqlWriter writer,
                            int leftPrec,
                            int rightPrec)
        Overrides:
        unparse in class org.apache.calcite.sql.SqlCall