Class FlightSqlClientDemoApp
java.lang.Object
org.apache.arrow.flight.sql.example.FlightSqlClientDemoApp
- All Implemented Interfaces:
AutoCloseable
Flight SQL Client Demo CLI Application.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
createFlightSqlClient
(String host, int port) Creates aFlightSqlClient
to be used with the example methods.void
executeApp
(org.apache.commons.cli.CommandLine cmd) CallscreateFlightSqlClient(String, int)
in order to create aFlightSqlClient
to be used in future calls, and then callsexecuteCommand(CommandLine)
to execute the command parsed at execution.void
executeCommand
(org.apache.commons.cli.CommandLine cmd) Parses the "command
" CLI argument and redirects to the appropriate method.Gets the currentCallOption
as an array; usually used as an argument inFlightSqlClient
methods.static void
-
Field Details
-
callOptions
-
allocator
-
flightSqlClient
-
-
Constructor Details
-
FlightSqlClientDemoApp
-
-
Method Details
-
main
- Throws:
Exception
-
getCallOptions
Gets the currentCallOption
as an array; usually used as an argument inFlightSqlClient
methods.- Returns:
- current
CallOption
array.
-
executeApp
CallscreateFlightSqlClient(String, int)
in order to create aFlightSqlClient
to 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 aFlightSqlClient
to be used with the example methods.- Parameters:
host
- client's hostname.port
- client's port.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-