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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
 
- 
getCallOptionsGets the currentCallOptionas an array; usually used as an argument inFlightSqlClientmethods.- Returns:
- current CallOptionarray.
 
- 
executeAppCallscreateFlightSqlClient(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- parsed- CommandLine; often the result of- DefaultParser.parse(Options, String[]).
- Throws:
- Exception
 
- 
executeCommandParses the "command" CLI argument and redirects to the appropriate method.- Parameters:
- cmd- parsed- CommandLine; often the result of- DefaultParser.parse(Options, String[]).
- Throws:
- Exception
 
- 
createFlightSqlClientCreates aFlightSqlClientto be used with the example methods.- Parameters:
- host- client's hostname.
- port- client's port.
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- Exception
 
 
-