public class PrintingResultsListener extends Object implements UserResultsListener
| Constructor and Description |
|---|
PrintingResultsListener(DrillConfig config,
QuerySubmitter.Format format,
int columnWidth) |
| Modifier and Type | Method and Description |
|---|---|
void |
dataArrived(QueryDataBatch result,
ConnectionThrottle throttle)
A
QueryData message was received |
void |
queryCompleted(UserBitShared.QueryResult.QueryState state)
The query has completed (successsful completion or cancellation).
|
void |
queryIdArrived(UserBitShared.QueryId queryId)
QueryId is available.
|
void |
submissionFailed(UserException ex)
The query has failed.
|
public PrintingResultsListener(DrillConfig config, QuerySubmitter.Format format, int columnWidth)
public void submissionFailed(UserException ex)
UserResultsListenerdataArrived() throws an exceptionsubmissionFailed in interface UserResultsListenerex - exception describing the cause of the failurepublic void queryCompleted(UserBitShared.QueryResult.QueryState state)
UserResultsListenerqueryCompleted in interface UserResultsListenerpublic void dataArrived(QueryDataBatch result, ConnectionThrottle throttle)
UserResultsListenerQueryData message was receiveddataArrived in interface UserResultsListenerresult - data batch receivedthrottle - connection throttlepublic void queryIdArrived(UserBitShared.QueryId queryId)
UserResultsListenerqueryIdArrived in interface UserResultsListenerqueryId - sent by the server along Acks.OKCopyright © 2017 The Apache Software Foundation. All rights reserved.