Package org.apache.flink.table.client
Class SqlClient
java.lang.Object
org.apache.flink.table.client.SqlClient
SQL Client for submitting SQL statements. The client can be executed in two modes: a gateway and
embedded mode.
- 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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSqlClient(boolean isGatewayMode, CliOptions options, Supplier<org.jline.terminal.Terminal> terminalFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected static voidstartClient(String[] args, Supplier<org.jline.terminal.Terminal> terminalFactory)
-
Field Details
-
MODE_EMBEDDED
- See Also:
-
MODE_GATEWAY
- See Also:
-
MODE_NONE
- See Also:
-
-
Constructor Details
-
SqlClient
public SqlClient(boolean isGatewayMode, CliOptions options, Supplier<org.jline.terminal.Terminal> terminalFactory)
-
-
Method Details
-
main
-
startClient
-