ihuzenko 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_r257170232
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/WebUserConnection.java
##########
@@ -196,4 +198,28 @@ 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 Max number of records to be sent back to WebServer
+ */
+ void autoLimitResultSet(Integer autoLimitSize) {
+ this.autoLimitRowCount = autoLimitSize;
+ }
+
+ /**
+ * 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() {
+ return this.autoLimitRowCount;
+ }
+
+ /**
+ * Indicates if resultset is autolimited
+ * @return
+ */
+ boolean isResultSetAutoLimited() {
Review comment:
Seems like this method isn't used anywhere and may be removed
----------------------------------------------------------------
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