public class ExecutorImpl extends Object implements Executor
SqlGateway and execute statements.| Constructor and Description |
|---|
ExecutorImpl(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext,
InetSocketAddress gatewayAddress,
String sessionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the
Executor and process all exceptions. |
List<String> |
completeStatement(String statement,
int position)
Returns a list of completion hints for the given statement at the given position.
|
void |
configureSession(String statement)
Configures session with statement.
|
StatementResult |
executeStatement(String statement)
Execute statement.
|
org.apache.flink.configuration.ReadableConfig |
getSessionConfig()
Get the configuration of the session.
|
org.apache.flink.table.gateway.api.session.SessionHandle |
getSessionHandle() |
public ExecutorImpl(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext,
InetSocketAddress gatewayAddress,
String sessionId)
public void configureSession(String statement)
ExecutorconfigureSession in interface Executorstatement - to initialize the sessionpublic org.apache.flink.configuration.ReadableConfig getSessionConfig()
ExecutorgetSessionConfig in interface Executorpublic StatementResult executeStatement(String statement)
ExecutorexecuteStatement in interface Executorstatement - to executepublic List<String> completeStatement(String statement, int position)
ExecutorcompleteStatement in interface Executorstatement - Partial or slightly incorrect SQL statementposition - cursor positionpublic void close()
ExecutorExecutor and process all exceptions.@VisibleForTesting public org.apache.flink.table.gateway.api.session.SessionHandle getSessionHandle()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.