Package org.apache.flink.sql.parser.dql
Class SqlShowDatabases
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.flink.sql.parser.dql.SqlShowDatabases
-
- All Implemented Interfaces:
Cloneable
public class SqlShowDatabases extends org.apache.calcite.sql.SqlCallSHOW 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.SqlSpecialOperatorOPERATOR
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getCatalog()StringgetLikeSqlPattern()StringgetLikeType()List<org.apache.calcite.sql.SqlNode>getOperandList()org.apache.calcite.sql.SqlOperatorgetOperator()StringgetPreposition()booleanisNotLike()voidunparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
-
-
-
-
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
-
getCatalog
public String[] getCatalog()
-
getOperator
public org.apache.calcite.sql.SqlOperator getOperator()
- Specified by:
getOperatorin classorg.apache.calcite.sql.SqlCall
-
getOperandList
public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandListin classorg.apache.calcite.sql.SqlCall
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)- Overrides:
unparsein classorg.apache.calcite.sql.SqlCall
-
getLikeSqlPattern
public String getLikeSqlPattern()
-
isNotLike
public boolean isNotLike()
-
getPreposition
public String getPreposition()
-
getLikeType
public String getLikeType()
-
-