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(DefaultContext defaultContext,
InetSocketAddress address,
String sessionId)
Create an
Executor to execute commands. |
StatementResult |
executeStatement(String statement)
Execute statement.
|
ReadableConfig |
getSessionConfig()
Get the configuration of the session.
|
static Executor create(DefaultContext defaultContext, InetSocketAddress address, String sessionId)
Executor
to execute commands.void configureSession(String statement)
statement
- to initialize the sessionReadableConfig 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 AutoCloseable
close
in interface Closeable
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.