public interface Executor extends Closeable
| 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.
|
static Executor |
create(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext,
InetSocketAddress address,
String sessionId)
Create an
Executor to execute commands. |
StatementResult |
executeStatement(String statement)
Execute statement.
|
org.apache.flink.configuration.ReadableConfig |
getSessionConfig()
Get the configuration of the session.
|
static Executor create(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext, InetSocketAddress address, String sessionId)
Executor to execute commands.void configureSession(String statement)
statement - to initialize the sessionorg.apache.flink.configuration.ReadableConfig getSessionConfig()
StatementResult executeStatement(String statement)
statement - to executeList<String> completeStatement(String statement, int position)
statement - Partial or slightly incorrect SQL statementposition - cursor positionvoid close()
Executor and process all exceptions.close in interface AutoCloseableclose in interface CloseableCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.