public class OperationExecutor extends Object
Operation.| Modifier and Type | Field and Description |
|---|---|
protected SessionContext |
sessionContext |
| Constructor and Description |
|---|
OperationExecutor(SessionContext context,
org.apache.flink.configuration.Configuration executionConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected ResultFetcher |
callRemoveJar(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle,
String jarPath) |
ResultFetcher |
callShowJobsOperation(org.apache.flink.table.api.internal.TableEnvironmentInternal tableEnv,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle,
org.apache.flink.table.operations.command.ShowJobsOperation showJobsOperation) |
ResultFetcher |
callStopJobOperation(org.apache.flink.table.api.internal.TableEnvironmentInternal tableEnv,
org.apache.flink.table.gateway.api.operation.OperationHandle handle,
org.apache.flink.table.operations.command.StopJobOperation stopJobOperation) |
ResultFetcher |
configureSession(org.apache.flink.table.gateway.api.operation.OperationHandle handle,
String statement) |
ResultFetcher |
executeStatement(org.apache.flink.table.gateway.api.operation.OperationHandle handle,
String statement) |
ResultFetcher |
getCompletionHints(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle,
String statement,
int position) |
String |
getCurrentCatalog() |
org.apache.flink.table.functions.FunctionDefinition |
getFunctionDefinition(org.apache.flink.table.catalog.UnresolvedIdentifier identifier) |
org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> |
getTable(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier) |
org.apache.flink.table.api.internal.TableEnvironmentInternal |
getTableEnvironment() |
Set<String> |
listCatalogs() |
Set<String> |
listDatabases(String catalogName) |
Set<org.apache.flink.table.gateway.api.results.FunctionInfo> |
listSystemFunctions() |
Set<org.apache.flink.table.gateway.api.results.TableInfo> |
listTables(String catalogName,
String databaseName,
Set<org.apache.flink.table.catalog.CatalogBaseTable.TableKind> tableKinds) |
Set<org.apache.flink.table.gateway.api.results.FunctionInfo> |
listUserDefinedFunctions(String catalogName,
String databaseName) |
protected final SessionContext sessionContext
@VisibleForTesting public OperationExecutor(SessionContext context, org.apache.flink.configuration.Configuration executionConfig)
public ResultFetcher configureSession(org.apache.flink.table.gateway.api.operation.OperationHandle handle, String statement)
public ResultFetcher executeStatement(org.apache.flink.table.gateway.api.operation.OperationHandle handle, String statement)
public String getCurrentCatalog()
public Set<org.apache.flink.table.gateway.api.results.TableInfo> listTables(String catalogName, String databaseName, Set<org.apache.flink.table.catalog.CatalogBaseTable.TableKind> tableKinds)
public org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> getTable(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier)
public Set<org.apache.flink.table.gateway.api.results.FunctionInfo> listUserDefinedFunctions(String catalogName, String databaseName)
public Set<org.apache.flink.table.gateway.api.results.FunctionInfo> listSystemFunctions()
public org.apache.flink.table.functions.FunctionDefinition getFunctionDefinition(org.apache.flink.table.catalog.UnresolvedIdentifier identifier)
public ResultFetcher getCompletionHints(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, String statement, int position)
@VisibleForTesting public org.apache.flink.table.api.internal.TableEnvironmentInternal getTableEnvironment()
protected ResultFetcher callRemoveJar(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, String jarPath)
public ResultFetcher callStopJobOperation(org.apache.flink.table.api.internal.TableEnvironmentInternal tableEnv, org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.table.operations.command.StopJobOperation stopJobOperation) throws SqlExecutionException
SqlExecutionExceptionpublic ResultFetcher callShowJobsOperation(org.apache.flink.table.api.internal.TableEnvironmentInternal tableEnv, org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, org.apache.flink.table.operations.command.ShowJobsOperation showJobsOperation) throws SqlExecutionException
SqlExecutionExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.