Class AbstractSqlShowConverter<T extends SqlShowCall>
- java.lang.Object
-
- org.apache.flink.table.planner.operations.converters.AbstractSqlShowConverter<T>
-
- All Implemented Interfaces:
SqlNodeConverter<T>
- Direct Known Subclasses:
SqlShowFunctionsConverter
,SqlShowProcedureConverter
,SqlShowTablesConverter
,SqlShowViewsConverter
public abstract class AbstractSqlShowConverter<T extends SqlShowCall> extends Object implements SqlNodeConverter<T>
An abstract class for SHOW converters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.planner.operations.converters.SqlNodeConverter
SqlNodeConverter.ConvertContext
-
-
Constructor Summary
Constructors Constructor Description AbstractSqlShowConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Operation
convertShowOperation(T sqlShowCall, SqlNodeConverter.ConvertContext context)
abstract Operation
convertSqlNode(T node, SqlNodeConverter.ConvertContext context)
Convert the given validatedSqlNode
into anOperation
.ShowLikeOperator
getLikeOp(SqlShowCall sqlShowCall)
abstract Operation
getOperation(T sqlShowCall, String catalogName, String databaseName, String prep, ShowLikeOperator likeOp)
abstract Operation
getOperationWithoutPrep(T sqlShowCall, String catalogName, String databaseName, ShowLikeOperator likeOp)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.planner.operations.converters.SqlNodeConverter
supportedSqlKinds
-
-
-
-
Method Detail
-
convertShowOperation
protected Operation convertShowOperation(T sqlShowCall, SqlNodeConverter.ConvertContext context)
-
getLikeOp
public ShowLikeOperator getLikeOp(SqlShowCall sqlShowCall)
-
getOperationWithoutPrep
public abstract Operation getOperationWithoutPrep(T sqlShowCall, @Nullable String catalogName, @Nullable String databaseName, @Nullable ShowLikeOperator likeOp)
-
getOperation
public abstract Operation getOperation(T sqlShowCall, @Nullable String catalogName, @Nullable String databaseName, @Nullable String prep, @Nullable ShowLikeOperator likeOp)
-
convertSqlNode
public abstract Operation convertSqlNode(T node, SqlNodeConverter.ConvertContext context)
Description copied from interface:SqlNodeConverter
Convert the given validatedSqlNode
into anOperation
.- Specified by:
convertSqlNode
in interfaceSqlNodeConverter<T extends SqlShowCall>
- Parameters:
node
- a validatedSqlNode
.context
- the utilities and context information to convert
-
-