@InterfaceAudience.Public public class QuotaFilter extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
hasFilters |
private String |
namespaceRegex |
private String |
regionServerRegex |
private String |
tableRegex |
private Set<QuotaType> |
types |
private String |
userRegex |
Constructor and Description |
---|
QuotaFilter() |
Modifier and Type | Method and Description |
---|---|
QuotaFilter |
addTypeFilter(QuotaType type)
Add a type to the filter list
|
String |
getNamespaceFilter() |
String |
getRegionServerFilter() |
String |
getTableFilter() |
Set<QuotaType> |
getTypeFilters() |
String |
getUserFilter() |
boolean |
isNull() |
QuotaFilter |
setNamespaceFilter(String regex)
Set the namespace filter regex
|
QuotaFilter |
setRegionServerFilter(String regex)
Set the region server filter regex
|
QuotaFilter |
setTableFilter(String regex)
Set the table filter regex
|
QuotaFilter |
setUserFilter(String regex)
Set the user filter regex
|
private boolean hasFilters
private String namespaceRegex
private String tableRegex
private String regionServerRegex
public QuotaFilter()
public QuotaFilter setUserFilter(String regex)
regex
- the user filterpublic QuotaFilter setTableFilter(String regex)
regex
- the table filterpublic QuotaFilter setNamespaceFilter(String regex)
regex
- the namespace filterpublic QuotaFilter setRegionServerFilter(String regex)
regex
- the region server filterpublic QuotaFilter addTypeFilter(QuotaType type)
type
- the type to filter onpublic boolean isNull()
public Set<QuotaType> getTypeFilters()
public String getNamespaceFilter()
public String getTableFilter()
public String getUserFilter()
public String getRegionServerFilter()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.