@InterfaceAudience.Public public class QuotaRetriever extends Object implements Closeable, Iterable<QuotaSettings>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Iterator<QuotaSettings> |
iterator() |
QuotaSettings |
next() |
static QuotaRetriever |
open(org.apache.hadoop.conf.Configuration conf)
Open a QuotaRetriever with no filter, all the quota settings will be returned.
|
static QuotaRetriever |
open(org.apache.hadoop.conf.Configuration conf,
QuotaFilter filter)
Open a QuotaRetriever with the specified filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic QuotaSettings next() throws IOException
IOExceptionpublic Iterator<QuotaSettings> iterator()
iterator in interface Iterable<QuotaSettings>public static QuotaRetriever open(org.apache.hadoop.conf.Configuration conf) throws IOException
conf - Configuration object to use.IOException - if a remote or network exception occurspublic static QuotaRetriever open(org.apache.hadoop.conf.Configuration conf, QuotaFilter filter) throws IOException
conf - Configuration object to use.filter - the QuotaFilterIOException - if a remote or network exception occursCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.