This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new f5e94c2277 Make all accessor methods on BrokerResponse public (#11506)
f5e94c2277 is described below

commit f5e94c2277be1f229d84037a2dd9227ee9fb059b
Author: lucifer4j <[email protected]>
AuthorDate: Tue Sep 5 18:51:09 2023 +0530

    Make all accessor methods on BrokerResponse public (#11506)
    
    In #10932, I requested for BrokerResponse class to be made public so that an
    external implementation of PinotClientTransport could be created. At that 
time,
    I failed to rectify that most of the methods to access data from 
BrokerResponse
    class are package-private which again hinders using them in a custom 
transport.
    Hence, opening this PR to make those public methods too.
    
    CC: @tsegismont
---
 .../java/org/apache/pinot/client/BrokerResponse.java   | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 
a/pinot-clients/pinot-java-client/src/main/java/org/apache/pinot/client/BrokerResponse.java
 
b/pinot-clients/pinot-java-client/src/main/java/org/apache/pinot/client/BrokerResponse.java
index 6c04097b5c..a2c4d757bc 100644
--- 
a/pinot-clients/pinot-java-client/src/main/java/org/apache/pinot/client/BrokerResponse.java
+++ 
b/pinot-clients/pinot-java-client/src/main/java/org/apache/pinot/client/BrokerResponse.java
@@ -46,27 +46,27 @@ public class BrokerResponse {
     _executionStats = ExecutionStats.fromJson(brokerResponse);
   }
 
-  boolean hasExceptions() {
+  public boolean hasExceptions() {
     return _exceptions != null && !_exceptions.isEmpty();
   }
 
-  JsonNode getExceptions() {
+  public JsonNode getExceptions() {
     return _exceptions;
   }
 
-  JsonNode getAggregationResults() {
+  public JsonNode getAggregationResults() {
     return _aggregationResults;
   }
 
-  JsonNode getSelectionResults() {
+  public JsonNode getSelectionResults() {
     return _selectionResults;
   }
 
-  JsonNode getResultTable() {
+  public JsonNode getResultTable() {
     return _resultTable;
   }
 
-  int getAggregationResultsSize() {
+  public int getAggregationResultsSize() {
     if (_aggregationResults == null) {
       return 0;
     } else {
@@ -74,15 +74,15 @@ public class BrokerResponse {
     }
   }
 
-  ExecutionStats getExecutionStats() {
+  public ExecutionStats getExecutionStats() {
     return _executionStats;
   }
 
-  static BrokerResponse fromJson(JsonNode json) {
+  public static BrokerResponse fromJson(JsonNode json) {
     return new BrokerResponse(json);
   }
 
-  static BrokerResponse empty() {
+  public static BrokerResponse empty() {
     return new BrokerResponse();
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to