Class AbstractShowOperation
- java.lang.Object
-
- org.apache.flink.table.operations.AbstractShowOperation
-
- All Implemented Interfaces:
ExecutableOperation,Operation,ShowOperation
- Direct Known Subclasses:
ShowCatalogsOperation,ShowColumnsOperation,ShowDatabasesOperation,ShowFunctionsOperation,ShowModelsOperation,ShowProceduresOperation,ShowTablesOperation,ShowViewsOperation
@Internal public abstract class AbstractShowOperation extends Object implements ShowOperation
Base class for SHOW operations. It provides support of functionality:[ ( FROM | IN ) catalog_name] [ [NOT] (LIKE | ILIKE) <sql_like_pattern> ]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.operations.ExecutableOperation
ExecutableOperation.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcatalogNameprotected ShowLikeOperatorlikeOpprotected Stringpreposition
-
Constructor Summary
Constructors Constructor Description AbstractShowOperation(String catalogName, String preposition, ShowLikeOperator likeOp)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringasSummaryString()Returns a string that summarizes this operation for printing to a console.booleanequals(Object o)TableResultInternalexecute(ExecutableOperation.Context ctx)Executes the given operation and return the execution result.protected abstract StringgetColumnName()protected abstract StringgetOperationName()protected StringgetPrepositionSummaryString()inthashCode()protected abstract Collection<String>retrieveDataForTableResult(ExecutableOperation.Context ctx)StringtoString()
-
-
-
Field Detail
-
catalogName
@Nullable protected final String catalogName
-
preposition
@Nullable protected final String preposition
-
likeOp
@Nullable protected final ShowLikeOperator likeOp
-
-
Constructor Detail
-
AbstractShowOperation
public AbstractShowOperation(@Nullable String catalogName, @Nullable String preposition, @Nullable ShowLikeOperator likeOp)
-
-
Method Detail
-
retrieveDataForTableResult
protected abstract Collection<String> retrieveDataForTableResult(ExecutableOperation.Context ctx)
-
getOperationName
protected abstract String getOperationName()
-
getColumnName
protected abstract String getColumnName()
-
execute
public TableResultInternal execute(ExecutableOperation.Context ctx)
Description copied from interface:ExecutableOperationExecutes the given operation and return the execution result.- Specified by:
executein interfaceExecutableOperation- Parameters:
ctx- the context to execute the operation.- Returns:
- the content of the execution result.
- See Also:
TableEnvironmentInternal.executeInternal(Operation)
-
asSummaryString
public String asSummaryString()
Description copied from interface:OperationReturns a string that summarizes this operation for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryStringin interfaceOperation- Returns:
- summary string of this operation for debugging purposes
-
getPrepositionSummaryString
protected String getPrepositionSummaryString()
-
-