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. |
static Executor |
create(DefaultContext defaultContext,
InetSocketAddress address,
String sessionId,
RowFormat rowFormat) |
static Executor |
create(DefaultContext defaultContext,
URL address,
String sessionId) |
StatementResult |
executeStatement(String statement)
Execute statement.
|
ReadableConfig |
getSessionConfig()
Get the configuration of the session.
|
Map<String,String> |
getSessionConfigMap()
Get the map configuration of the session.
|
static Executor create(DefaultContext defaultContext, InetSocketAddress address, String sessionId)
Executor
to execute commands.static Executor create(DefaultContext defaultContext, InetSocketAddress address, String sessionId, RowFormat rowFormat)
static Executor create(DefaultContext defaultContext, URL address, String sessionId)
void configureSession(String statement)
statement
- to initialize the sessionReadableConfig getSessionConfig()
Map<String,String> getSessionConfigMap()
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.