public class SqlClient extends Object
- In embedded mode, the SQL CLI is tightly coupled with the executor in a common process. This allows for submitting jobs without having to start an additional component.
- In gateway mode, the SQL CLI client connects to the REST API of the gateway and allows for managing queries via console.
Modifier and Type | Field and Description |
---|---|
static String |
MODE_EMBEDDED |
static String |
MODE_GATEWAY |
static String |
MODE_NONE |
Constructor and Description |
---|
SqlClient(boolean isGatewayMode,
CliOptions options,
Supplier<org.jline.terminal.Terminal> terminalFactory) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
protected static void |
startClient(String[] args,
Supplier<org.jline.terminal.Terminal> terminalFactory) |
public static final String MODE_EMBEDDED
public static final String MODE_GATEWAY
public static final String MODE_NONE
public SqlClient(boolean isGatewayMode, CliOptions options, Supplier<org.jline.terminal.Terminal> terminalFactory)
public static void main(String[] args)
@VisibleForTesting protected static void startClient(String[] args, Supplier<org.jline.terminal.Terminal> terminalFactory)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.