Class SqlClient


  • public class SqlClient
    extends Object
    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.

    • Constructor Detail

      • SqlClient

        public SqlClient​(boolean isGatewayMode,
                         CliOptions options,
                         java.util.function.Supplier<org.jline.terminal.Terminal> terminalFactory)
    • Method Detail

      • main

        public static void main​(String[] args)
      • startClient

        @VisibleForTesting
        protected static void startClient​(String[] args,
                                          java.util.function.Supplier<org.jline.terminal.Terminal> terminalFactory)