@Override public List<QuotaSettings> getQuota(QuotaFilter filter) throws IOException { List<QuotaSettings> quotas = new LinkedList<>(); try (QuotaRetriever retriever = QuotaRetriever.open(conf, filter)) { Iterator<QuotaSettings> iterator = retriever.iterator(); while (iterator.hasNext()) { quotas.add(iterator.next()); } } return quotas; }
@Override public QuotaRetriever getQuotaRetriever(QuotaFilter filter) throws IOException { throw new UnsupportedOperationException("getQuotaRetriever"); }
@Override public QuotaRetriever getQuotaRetriever(QuotaFilter qf) throws IOException { return wrappedHbaseAdmin.getQuotaRetriever(qf); }
@Override public QuotaRetriever getQuotaRetriever(final QuotaFilter filter) throws IOException { return QuotaRetriever.open(conf, filter); }
/** * Return a Quota Scanner to list the quotas based on the filter. * @param filter the quota settings filter * @return the quota scanner * @throws IOException if a remote or network exception occurs */ @Override public QuotaRetriever getQuotaRetriever(final QuotaFilter filter) throws IOException { return QuotaRetriever.open(conf, filter); }
/** * Return a QuotaRetriever to list the quotas based on the filter. * @param filter the quota settings filter * @return the quota retriever * @throws IOException if a remote or network exception occurs */ QuotaRetriever getQuotaRetriever(final QuotaFilter filter) throws IOException;
/** * Return a QuotaRetriever to list the quotas based on the filter. * @param filter the quota settings filter * @return the quota retriever * @throws IOException if a remote or network exception occurs * @deprecated Since 2.0.0. Will be removed in 3.0.0. Use {@link #getQuota(QuotaFilter)}. */ @Deprecated QuotaRetriever getQuotaRetriever(QuotaFilter filter) throws IOException;