Module org.apache.arrow.flight.core
Package org.apache.arrow.flight
Class FlightClient.ExchangeReaderWriter
java.lang.Object
org.apache.arrow.flight.FlightClient.ExchangeReaderWriter
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- FlightClient
A pair of a reader and a writer for a DoExchange call.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Shut down the streams in this call.Get the reader for the call.void
Make sure stream is drained.Get the writer for the call.
-
Method Details
-
getReader
Get the reader for the call. -
getWriter
Get the writer for the call. -
getResult
public void getResult()Make sure stream is drained. You must call this to be notified of any errors that may have happened after the exchange is complete. This should be called after `getWriter().completed()` and instead of `getWriter().getResult()`. -
close
Shut down the streams in this call.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-