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
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class org.apache.drill.exec.server.rest.BaseWebUserConnection
webSessionResources
Fields inherited from class org.apache.drill.exec.rpc.AbstractDisposableUserClientConnection
error, latch, queryState
-
Method Summary
Modifier and TypeMethodDescriptionvoid
For authenticated WebUser no cleanup ofWebSessionResources
is done since it's re-used for all the queries until lifetime of the web session.int
Gets the max size of records to be sent back by the queryvoid
sendData
(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, webDataType
Methods 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:UserClientConnection
Send 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 ofWebSessionResources
is 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
-