Class ShowColumnsOperation
java.lang.Object
org.apache.flink.table.operations.AbstractShowOperation
org.apache.flink.table.operations.ShowColumnsOperation
- All Implemented Interfaces:
ExecutableOperation,Operation,ShowOperation
Operation to describe a SHOW COLUMNS statement. The full syntax for SHOW COLUMNS is as
followings:
SHOW COLUMNS [ ( FROM | IN ) [catalog_name.]database_name.]table [ [NOT] (LIKE | ILIKE)
<sql_like_pattern> ] statement
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.table.operations.ExecutableOperation
ExecutableOperation.Context -
Field Summary
Fields inherited from class org.apache.flink.table.operations.AbstractShowOperation
catalogName, likeOp, preposition -
Constructor Summary
ConstructorsConstructorDescriptionShowColumnsOperation(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier, String preposition, ShowLikeOperator likeOp) -
Method Summary
Modifier and TypeMethodDescriptionExecutes the given operation and return the execution result.protected Stringprotected Stringorg.apache.flink.table.catalog.ObjectIdentifierprotected Collection<String>Methods inherited from class org.apache.flink.table.operations.AbstractShowOperation
asSummaryString, equals, getPrepositionSummaryString, hashCode, toString
-
Constructor Details
-
ShowColumnsOperation
public ShowColumnsOperation(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier, @Nullable String preposition, @Nullable ShowLikeOperator likeOp)
-
-
Method Details
-
getTableIdentifier
public org.apache.flink.table.catalog.ObjectIdentifier getTableIdentifier() -
execute
Description copied from interface:ExecutableOperationExecutes the given operation and return the execution result.- Specified by:
executein interfaceExecutableOperation- Overrides:
executein classAbstractShowOperation- Parameters:
ctx- the context to execute the operation.- Returns:
- the content of the execution result.
- See Also:
-
getOperationName
- Specified by:
getOperationNamein classAbstractShowOperation
-
getColumnName
- Specified by:
getColumnNamein classAbstractShowOperation
-
retrieveDataForTableResult
- Specified by:
retrieveDataForTableResultin classAbstractShowOperation
-