Class OperationExecutor
java.lang.Object
org.apache.flink.table.gateway.service.operation.OperationExecutor
An executor to execute the
Operation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOperationExecutor(SessionContext sessionContext, BiFunction<org.apache.flink.configuration.Configuration, ClassLoader, org.apache.flink.streaming.api.environment.StreamExecutionEnvironment> environmentBuilder) OperationExecutor(SessionContext context, org.apache.flink.configuration.Configuration executionConfig) -
Method Summary
Modifier and TypeMethodDescriptioncallDescribeJobOperation(org.apache.flink.table.api.internal.TableEnvironmentInternal tableEnv, org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, org.apache.flink.table.operations.command.DescribeJobOperation describeJobOperation) callExecutableOperation(org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.table.operations.ExecutableOperation op) protected ResultFetchercallRemoveJar(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, String jarPath) 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) 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) configureSession(org.apache.flink.table.gateway.api.operation.OperationHandle handle, String statement) executeStatement(org.apache.flink.table.gateway.api.operation.OperationHandle handle, String statement) executeStatement(org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.configuration.Configuration customConfig, String statement) getCompletionHints(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, String statement, int position) org.apache.flink.table.functions.FunctionDefinitiongetFunctionDefinition(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.TableEnvironmentInternalorg.apache.flink.table.api.internal.TableEnvironmentInternalgetTableEnvironment(org.apache.flink.table.resource.ResourceManager resourceManager, org.apache.flink.configuration.Configuration customConfig) listDatabases(String catalogName) Set<org.apache.flink.table.gateway.api.results.FunctionInfo>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) refreshMaterializedTable(org.apache.flink.table.gateway.api.operation.OperationHandle handle, String materializedTableIdentifier, boolean isPeriodic, String scheduleTime, Map<String, String> staticPartitions, Map<String, String> dynamicOptions) booleantableExists(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier)
-
Field Details
-
sessionContext
-
-
Constructor Details
-
OperationExecutor
@VisibleForTesting public OperationExecutor(SessionContext context, org.apache.flink.configuration.Configuration executionConfig) -
OperationExecutor
public OperationExecutor(SessionContext sessionContext, BiFunction<org.apache.flink.configuration.Configuration, ClassLoader, org.apache.flink.streaming.api.environment.StreamExecutionEnvironment> environmentBuilder)
-
-
Method Details
-
configureSession
public ResultFetcher configureSession(org.apache.flink.table.gateway.api.operation.OperationHandle handle, String statement) -
executeStatement
public ResultFetcher executeStatement(org.apache.flink.table.gateway.api.operation.OperationHandle handle, String statement) -
executeStatement
public ResultFetcher executeStatement(org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.configuration.Configuration customConfig, String statement) -
getCurrentCatalog
-
listCatalogs
-
listDatabases
-
listTables
-
tableExists
public boolean tableExists(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier) -
getTable
public org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> getTable(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier) -
listUserDefinedFunctions
-
listSystemFunctions
-
getFunctionDefinition
public org.apache.flink.table.functions.FunctionDefinition getFunctionDefinition(org.apache.flink.table.catalog.UnresolvedIdentifier identifier) -
getCompletionHints
public ResultFetcher getCompletionHints(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, String statement, int position) -
getTableEnvironment
public org.apache.flink.table.api.internal.TableEnvironmentInternal getTableEnvironment() -
getTableEnvironment
public org.apache.flink.table.api.internal.TableEnvironmentInternal getTableEnvironment(org.apache.flink.table.resource.ResourceManager resourceManager, org.apache.flink.configuration.Configuration customConfig) -
getSessionClusterId
-
callExecutableOperation
public ResultFetcher callExecutableOperation(org.apache.flink.table.gateway.api.operation.OperationHandle handle, org.apache.flink.table.operations.ExecutableOperation op) -
refreshMaterializedTable
-
getSessionContext
-
callRemoveJar
protected ResultFetcher callRemoveJar(org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, String jarPath) -
callStopJobOperation
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 - Throws:
SqlExecutionException
-
callShowJobsOperation
public 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 - Throws:
SqlExecutionException
-
callDescribeJobOperation
public ResultFetcher callDescribeJobOperation(org.apache.flink.table.api.internal.TableEnvironmentInternal tableEnv, org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle, org.apache.flink.table.operations.command.DescribeJobOperation describeJobOperation) throws SqlExecutionException - Throws:
SqlExecutionException
-