File tree Expand file tree Collapse file tree
hbase-client/src/main/java/org/apache/hadoop/hbase/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3153,16 +3153,15 @@ protected Void rpcCall() throws Exception {
31533153
31543154 @ Override
31553155 public QuotaRetriever getQuotaRetriever (final QuotaFilter filter ) throws IOException {
3156- return QuotaRetriever . open ( conf , filter );
3156+ return new QuotaRetriever ( connection , filter );
31573157 }
31583158
31593159 @ Override
31603160 public List <QuotaSettings > getQuota (QuotaFilter filter ) throws IOException {
31613161 List <QuotaSettings > quotas = new ArrayList <>();
3162- try (QuotaRetriever retriever = QuotaRetriever .open (conf , filter )) {
3163- Iterator <QuotaSettings > iterator = retriever .iterator ();
3164- while (iterator .hasNext ()) {
3165- quotas .add (iterator .next ());
3162+ try (QuotaRetriever retriever = new QuotaRetriever (connection , filter )) {
3163+ for (QuotaSettings quotaSettings : retriever ) {
3164+ quotas .add (quotaSettings );
31663165 }
31673166 }
31683167 return quotas ;
You can’t perform that action at this time.
0 commit comments