java.lang.Object
org.apache.arrow.flight.PollInfo
A POJO representation of the execution of a long-running query.
-
Constructor Summary
ConstructorDescriptionPollInfo
(FlightInfo flightInfo, FlightDescriptor flightDescriptor, Double progress, Instant expirationTime) Create a new PollInfo. -
Method Summary
Modifier and TypeMethodDescriptionstatic PollInfo
deserialize
(ByteBuffer serialized) boolean
The expiration time of the query execution.The FlightDescriptor that should be used to get further updates on this query.The FlightInfo describing the result set of the execution of a query.The progress of the query.int
hashCode()
toString()
-
Constructor Details
-
PollInfo
public PollInfo(FlightInfo flightInfo, FlightDescriptor flightDescriptor, Double progress, Instant expirationTime) Create a new PollInfo.- Parameters:
flightInfo
- The FlightInfo (must not be null).flightDescriptor
- The descriptor used to poll for more information; null if and only if query is finished.progress
- Optional progress info in [0.0, 1.0].expirationTime
- An expiration time, after which the server may no longer recognize the descriptor.
-
-
Method Details
-
getFlightInfo
The FlightInfo describing the result set of the execution of a query.This is always present and always contains all endpoints for the query execution so far, not just new endpoints that completed execution since the last call to
FlightClient.pollInfo(FlightDescriptor, CallOption...)
. -
getFlightDescriptor
The FlightDescriptor that should be used to get further updates on this query.It is present if and only if the query is still running. If present, it should be passed to
FlightClient.pollInfo(FlightDescriptor, CallOption...)
to get an update. -
getProgress
The progress of the query.If present, should be a value in [0.0, 1.0]. It is not necessarily monotonic or non-decreasing.
-
getExpirationTime
The expiration time of the query execution.After this passes, the server may not recognize the descriptor anymore and the client will not be able to track the query anymore.
-
serialize
-
deserialize
- Throws:
IOException
URISyntaxException
-
equals
-
hashCode
public int hashCode() -
toString
-