public interface InvalidListPruningDebug
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called once at the end to clean up the resources.
|
SortedSet<? extends RegionPruneInfo> |
getIdleRegions(Integer numRegions,
String time)
Return a list of RegionPruneInfo.
|
RegionPruneInfo |
getRegionPruneInfo(String regionId)
Return the prune upper bound value of a given region.
|
RegionsAtTime |
getRegionsOnOrBeforeTime(String timeString) |
Set<String> |
getRegionsToBeCompacted(Integer numRegions,
String time)
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)
Called once at the beginning to initialize the instance.
|
void initialize(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - ConfigurationIOException - when not able to initialize.void destroy()
throws IOException
IOException - when not able to clean up resources.Set<String> getRegionsToBeCompacted(Integer numRegions, String time) throws IOException
numRegions - number of regionstime - time in milliseconds or relative time, regions recorded before the given time are returnedSet of regions that needs to be compacted and flushedIOExceptionSortedSet<? extends RegionPruneInfo> getIdleRegions(Integer numRegions, String time) throws IOException
numRegions - number of regionstime - time in milliseconds or relative time, regions recorded before the given time are returnedIOException@Nullable RegionPruneInfo getRegionPruneInfo(String regionId) throws IOException
regionId - region idRegionPruneInfo of the regionIOException - if there are any errors while trying to fetch the RegionPruneInfoRegionsAtTime getRegionsOnOrBeforeTime(String timeString) throws IOException
timeString - Given a time, provide the regions at or before that time.
Time can be in milliseconds or relative time.IOException - if there are any errors while trying to fetch the region listCopyright © 2018 The Apache Software Foundation. All rights reserved.