Package org.apache.drill.exec.client
Class LoggingResultsListener
java.lang.Object
org.apache.drill.exec.client.LoggingResultsListener
- All Implemented Interfaces:
UserResultsListener
-
Constructor Summary
ConstructorDescriptionLoggingResultsListener
(DrillConfig config, QuerySubmitter.Format format, int columnWidth) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dataArrived
(QueryDataBatch result, ConnectionThrottle throttle) AQueryData
message was receivedvoid
The query has completed (successful completion or cancellation).void
queryIdArrived
(UserBitShared.QueryId queryId) QueryId is available.void
The query has failed.
-
Constructor Details
-
LoggingResultsListener
-
-
Method Details
-
submissionFailed
Description copied from interface:UserResultsListener
The query has failed. Most likely called when the server returns a FAILED query state. Can also be called ifdataArrived()
throws an exception- Specified by:
submissionFailed
in interfaceUserResultsListener
- Parameters:
ex
- exception describing the cause of the failure
-
dataArrived
Description copied from interface:UserResultsListener
AQueryData
message was received- Specified by:
dataArrived
in interfaceUserResultsListener
- Parameters:
result
- data batch receivedthrottle
- connection throttle
-