Class SqlShowColumns

  • All Implemented Interfaces:
    Cloneable

    public class SqlShowColumns
    extends org.apache.calcite.sql.SqlCall
    Show [[catalog.] dataBasesName.]sqlIdentifier sql call. Here we add Rich in
    • Field Summary

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

        EMPTY_ARRAY, pos
    • Constructor Summary

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

      • OPERATOR

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

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

        protected final String preposition
      • notLike

        protected final boolean notLike
      • likeLiteral

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

      • SqlShowColumns

        public SqlShowColumns​(org.apache.calcite.sql.parser.SqlParserPos pos,
                              String preposition,
                              org.apache.calcite.sql.SqlIdentifier tableName,
                              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
      • fullTableName

        public String[] fullTableName()
      • unparse

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