Package org.apache.hadoop.hbase.quotas
Class QuotaFilter
java.lang.Object
org.apache.hadoop.hbase.quotas.QuotaFilter
Filter to use to filter the QuotaRetriever results.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddTypeFilter
(QuotaType type) Add a type to the filter listReturns the Namespace filter regexReturns the RegionServer filter regexReturns the Table filter regexReturns the QuotaType types that we want to filter oneReturns the User filter regexboolean
isNull()
Returns true if the filter is emptysetNamespaceFilter
(String regex) Set the namespace filter regexsetRegionServerFilter
(String regex) Set the region server filter regexsetTableFilter
(String regex) Set the table filter regexsetUserFilter
(String regex) Set the user filter regex
-
Field Details
-
types
-
hasFilters
-
namespaceRegex
-
tableRegex
-
userRegex
-
regionServerRegex
-
-
Constructor Details
-
QuotaFilter
public QuotaFilter()
-
-
Method Details
-
setUserFilter
Set the user filter regex- Parameters:
regex
- the user filter- Returns:
- the quota filter object
-
setTableFilter
Set the table filter regex- Parameters:
regex
- the table filter- Returns:
- the quota filter object
-
setNamespaceFilter
Set the namespace filter regex- Parameters:
regex
- the namespace filter- Returns:
- the quota filter object
-
setRegionServerFilter
Set the region server filter regex- Parameters:
regex
- the region server filter- Returns:
- the quota filter object
-
addTypeFilter
Add a type to the filter list- Parameters:
type
- the type to filter on- Returns:
- the quota filter object
-
isNull
Returns true if the filter is empty -
getTypeFilters
Returns the QuotaType types that we want to filter one -
getNamespaceFilter
Returns the Namespace filter regex -
getTableFilter
Returns the Table filter regex -
getUserFilter
Returns the User filter regex -
getRegionServerFilter
Returns the RegionServer filter regex
-