public class WebUserConnection extends BaseWebUserConnection
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.| Modifier and Type | Class and Description |
|---|---|
static class |
WebUserConnection.AnonWebUserConnection |
| Modifier and Type | Field and Description |
|---|---|
Set<String> |
columns |
List<String> |
metadata |
List<Map<String,String>> |
results |
webSessionResourceserror, latch, queryState| Modifier and Type | Method and Description |
|---|---|
void |
cleanupSession()
For authenticated WebUser no cleanup of
WebSessionResources is done since it's re-used
for all the queries until lifetime of the web session. |
int |
getAutoLimitRowCount()
Gets the max size of records to be sent back by the query
|
void |
sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener,
QueryDataPackage data)
Send query data to client.
|
getClosureFuture, getRemoteAddress, getSession, resources, setAutoRead, webDataTypeawait, await, getError, getQueryState, sendResultpublic void sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, QueryDataPackage data)
UserClientConnectionlistener.listener - The listenerdata - The data to be sentpublic void cleanupSession()
WebSessionResources is done since it's re-used
for all the queries until lifetime of the web session.public int getAutoLimitRowCount()
Copyright © 2022 The Apache Software Foundation. All rights reserved.