@InterfaceAudience.Private class MajorCompactionRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
configuration |
private static org.slf4j.Logger |
LOG |
protected RegionInfo |
region |
private Set<String> |
stores |
Constructor and Description |
---|
MajorCompactionRequest(org.apache.hadoop.conf.Configuration configuration,
RegionInfo region) |
MajorCompactionRequest(org.apache.hadoop.conf.Configuration configuration,
RegionInfo region,
Set<String> stores) |
Modifier and Type | Method and Description |
---|---|
(package private) Optional<MajorCompactionRequest> |
createRequest(org.apache.hadoop.conf.Configuration configuration,
Set<String> stores,
long timestamp) |
protected boolean |
familyHasReferenceFile(HRegionFileSystem fileSystem,
String family,
long ts) |
(package private) Connection |
getConnection(org.apache.hadoop.conf.Configuration configuration) |
(package private) HRegionFileSystem |
getFileSystem(Connection connection) |
(package private) List<org.apache.hadoop.fs.Path> |
getReferenceFilePaths(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path familyDir) |
(package private) RegionInfo |
getRegion() |
(package private) Set<String> |
getStores() |
(package private) Set<String> |
getStoresRequiringCompaction(Set<String> requestedStores,
long timestamp) |
(package private) static Optional<MajorCompactionRequest> |
newRequest(org.apache.hadoop.conf.Configuration configuration,
RegionInfo info,
Set<String> stores,
long timestamp) |
(package private) void |
setStores(Set<String> stores) |
(package private) boolean |
shouldCFBeCompacted(HRegionFileSystem fileSystem,
String family,
long ts) |
protected boolean |
shouldIncludeStore(HRegionFileSystem fileSystem,
String family,
Collection<StoreFileInfo> storeFiles,
long ts) |
String |
toString() |
private static final org.slf4j.Logger LOG
protected final org.apache.hadoop.conf.Configuration configuration
protected final RegionInfo region
MajorCompactionRequest(org.apache.hadoop.conf.Configuration configuration, RegionInfo region)
MajorCompactionRequest(org.apache.hadoop.conf.Configuration configuration, RegionInfo region, Set<String> stores)
static Optional<MajorCompactionRequest> newRequest(org.apache.hadoop.conf.Configuration configuration, RegionInfo info, Set<String> stores, long timestamp) throws IOException
IOException
RegionInfo getRegion()
Optional<MajorCompactionRequest> createRequest(org.apache.hadoop.conf.Configuration configuration, Set<String> stores, long timestamp) throws IOException
IOException
Set<String> getStoresRequiringCompaction(Set<String> requestedStores, long timestamp) throws IOException
IOException
boolean shouldCFBeCompacted(HRegionFileSystem fileSystem, String family, long ts) throws IOException
IOException
protected boolean shouldIncludeStore(HRegionFileSystem fileSystem, String family, Collection<StoreFileInfo> storeFiles, long ts) throws IOException
IOException
Connection getConnection(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOException
protected boolean familyHasReferenceFile(HRegionFileSystem fileSystem, String family, long ts) throws IOException
IOException
List<org.apache.hadoop.fs.Path> getReferenceFilePaths(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path familyDir) throws IOException
IOException
HRegionFileSystem getFileSystem(Connection connection) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.