Module org.apache.arrow.flight.sql
Class FlightSqlClientDemoApp
java.lang.Object
org.apache.arrow.flight.sql.example.FlightSqlClientDemoApp
- All Implemented Interfaces:
AutoCloseable
Flight SQL Client Demo CLI Application.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcreateFlightSqlClient(String host, int port) Creates aFlightSqlClientto be used with the example methods.voidexecuteApp(org.apache.commons.cli.CommandLine cmd) CallscreateFlightSqlClient(String, int)in order to create aFlightSqlClientto be used in future calls, and then callsexecuteCommand(CommandLine)to execute the command parsed at execution.voidexecuteCommand(org.apache.commons.cli.CommandLine cmd) Parses the "command" CLI argument and redirects to the appropriate method.Gets the currentCallOptionas an array; usually used as an argument inFlightSqlClientmethods.static void
-
Field Details
-
callOptions
-
allocator
-
flightSqlClient
-
-
Constructor Details
-
FlightSqlClientDemoApp
-
-
Method Details
-
main
- Throws:
Exception
-
getCallOptions
Gets the currentCallOptionas an array; usually used as an argument inFlightSqlClientmethods.- Returns:
- current
CallOptionarray.
-
executeApp
CallscreateFlightSqlClient(String, int)in order to create aFlightSqlClientto be used in future calls, and then callsexecuteCommand(CommandLine)to execute the command parsed at execution.- Parameters:
cmd- parsedCommandLine; often the result ofDefaultParser.parse(Options, String[]).- Throws:
Exception
-
executeCommand
Parses the "command" CLI argument and redirects to the appropriate method.- Parameters:
cmd- parsedCommandLine; often the result ofDefaultParser.parse(Options, String[]).- Throws:
Exception
-
createFlightSqlClient
Creates aFlightSqlClientto be used with the example methods.- Parameters:
host- client's hostname.port- client's port.
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-