kkhatua commented on a change in pull request #1608: DRILL-6960: AutoLimit the
size of ResultSet for a WebUI (or REST) client
URL: https://github.com/apache/drill/pull/1608#discussion_r259183181
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/WebUserConnection.java
##########
@@ -196,4 +198,20 @@ public void cleanupSession() {
webSessionResources.close();
}
}
-}
\ No newline at end of file
+
+ /**
+ * Sets an autolimit on the size of records to be sent back on the connection
+ * @param autoLimitRowCount Max number of records to be sent back to
WebServer
+ */
+ void setAutoLimitRowCount(Integer autoLimitRowCount) {
+ this.autoLimitRowCount = autoLimitRowCount;
+ }
+
+ /**
+ * Gets the max size of records to be sent back by the query
+ * @return Max number of records to be sent back to WebServer
+ */
+ public Integer getAutoLimitRowCount() {
Review comment:
👍
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services