public class DelegatingResultsListener
extends java.lang.Object
implements org.apache.drill.exec.rpc.user.UserResultsListener
| Constructor and Description |
|---|
DelegatingResultsListener(java.util.concurrent.ExecutorService executorService,
int id,
org.apache.drill.exec.rpc.user.UserResultsListener delegateListener)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dataArrived(org.apache.drill.exec.rpc.user.QueryDataBatch result,
org.apache.drill.exec.rpc.ConnectionThrottle throttle)
A
QueryData message was received |
void |
queryCompleted(org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState state)
The query has completed (successsful completion or cancellation).
|
void |
queryIdArrived(org.apache.drill.exec.proto.UserBitShared.QueryId queryId)
QueryId is available.
|
void |
submissionFailed(org.apache.drill.common.exceptions.UserException ex)
The query has failed.
|
void |
terminate()
Terminate any running task, and don't submit any more.
|
public DelegatingResultsListener(java.util.concurrent.ExecutorService executorService,
int id,
org.apache.drill.exec.rpc.user.UserResultsListener delegateListener)
executorService - an executor service to submit the delegated call todelegateListener - the delegatepublic void queryIdArrived(org.apache.drill.exec.proto.UserBitShared.QueryId queryId)
org.apache.drill.exec.rpc.user.UserResultsListenerqueryIdArrived in interface org.apache.drill.exec.rpc.user.UserResultsListenerqueryId - sent by the server along Acks.OKpublic void submissionFailed(org.apache.drill.common.exceptions.UserException ex)
org.apache.drill.exec.rpc.user.UserResultsListenerdataArrived() throws an exceptionsubmissionFailed in interface org.apache.drill.exec.rpc.user.UserResultsListenerex - exception describing the cause of the failurepublic void dataArrived(org.apache.drill.exec.rpc.user.QueryDataBatch result,
org.apache.drill.exec.rpc.ConnectionThrottle throttle)
org.apache.drill.exec.rpc.user.UserResultsListenerQueryData message was receiveddataArrived in interface org.apache.drill.exec.rpc.user.UserResultsListenerresult - data batch receivedthrottle - connection throttlepublic void queryCompleted(org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState state)
org.apache.drill.exec.rpc.user.UserResultsListenerqueryCompleted in interface org.apache.drill.exec.rpc.user.UserResultsListenerpublic void terminate()