Class WebUserConnection
java.lang.Object
org.apache.drill.exec.rpc.AbstractDisposableUserClientConnection
org.apache.drill.exec.server.rest.BaseWebUserConnection
org.apache.drill.exec.server.rest.WebUserConnection
- All Implemented Interfaces:
ConnectionThrottle,UserClientConnection
- Direct Known Subclasses:
WebUserConnection.AnonWebUserConnection
WebUserConnectionWrapper which represents the UserClientConnection between
WebServer and Foreman, for the WebUser submitting the query. It provides
access to the UserSession executing the query. There is no actual physical
channel corresponding to this connection wrapper.
It returns a close future which do have an EventExecutor out of BitServer EventLoopGroup.
Close future is set only when the WebSessionResources are closed.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.apache.drill.exec.server.rest.BaseWebUserConnection
webSessionResourcesFields inherited from class org.apache.drill.exec.rpc.AbstractDisposableUserClientConnection
error, latch, queryState -
Method Summary
Modifier and TypeMethodDescriptionvoidFor authenticated WebUser no cleanup ofWebSessionResourcesis done since it's re-used for all the queries until lifetime of the web session.intGets the max size of records to be sent back by the queryvoidsendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, QueryDataPackage data) Send query data to client.Methods inherited from class org.apache.drill.exec.server.rest.BaseWebUserConnection
getClosureFuture, getRemoteAddress, getSession, resources, setAutoRead, webDataTypeMethods inherited from class org.apache.drill.exec.rpc.AbstractDisposableUserClientConnection
await, await, getError, getQueryState, sendResult
-
Field Details
-
results
-
columns
-
metadata
-
-
Method Details
-
sendData
Description copied from interface:UserClientConnectionSend query data to client. Outcome is returned throughlistener.- Parameters:
listener- The listenerdata- The data to be sent
-
cleanupSession
public void cleanupSession()For authenticated WebUser no cleanup ofWebSessionResourcesis done since it's re-used for all the queries until lifetime of the web session. -
getAutoLimitRowCount
public int getAutoLimitRowCount()Gets the max size of records to be sent back by the query- Returns:
- Max number of records to be sent back to WebServer
-