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
- Configuration
IOException
public void destroy() throws IOException
IOException
public Set<String> getRegionsToBeCompacted(Integer numRegions) throws IOException
numRegions
- number of regionsSet
of regions that needs to be compacted and flushedIOException
public 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 RegionPruneInfo
public 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 TimeRegions
public static void main(String[] args)
Copyright © 2017 The Apache Software Foundation. All rights reserved.