public class InvalidListPruningDebug extends Object
| Constructor and Description |
|---|
InvalidListPruningDebug() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Queue<RegionPruneInfo> |
getIdleRegions(Integer numRegions)
Return a list of RegionPruneInfo.
|
RegionPruneInfo |
getRegionPruneInfo(String regionId)
Return the prune upper bound value of a given region.
|
Map<Long,SortedSet<String>> |
getRegionsOnOrBeforeTime(Long time) |
Set<String> |
getRegionsToBeCompacted(Integer numRegions)
Returns a set of regions that are live but are not empty nor have a prune upper bound recorded.
|
void |
initialize(org.apache.hadoop.conf.Configuration conf)
Initialize the Invalid List Debug Tool.
|
static void |
main(String[] args) |
public void initialize(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - ConfigurationIOExceptionpublic void destroy()
throws IOException
IOExceptionpublic Set<String> getRegionsToBeCompacted(Integer numRegions) throws IOException
numRegions - number of regionsSet of regions that needs to be compacted and flushedIOExceptionpublic Queue<RegionPruneInfo> getIdleRegions(Integer numRegions) throws IOException
numRegions - number of regionsIOException@Nullable public RegionPruneInfo getRegionPruneInfo(String regionId) throws IOException
regionId - region idRegionPruneInfo of the regionIOException - if there are any errors while trying to fetch the RegionPruneInfopublic Map<Long,SortedSet<String>> getRegionsOnOrBeforeTime(Long time) throws IOException
time - Given a time, provide the TimeRegions at or before that timeIOException - if there are any errors while trying to fetch the TimeRegionspublic static void main(String[] args)
Copyright © 2017 The Apache Software Foundation. All rights reserved.