@InterfaceAudience.Private class MajorCompactionRequest extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
configuration |
private static org.slf4j.Logger |
LOG |
private RegionInfo |
region |
private Set<String> |
stores |
private long |
timestamp |
Constructor and Description |
---|
MajorCompactionRequest(org.apache.hadoop.conf.Configuration configuration,
RegionInfo region,
Set<String> stores,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
(package private) Optional<MajorCompactionRequest> |
createRequest(org.apache.hadoop.conf.Configuration configuration,
Set<String> stores) |
private boolean |
familyHasReferenceFile(HRegionFileSystem fileSystem,
String family) |
(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) |
(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) |
String |
toString() |
private static final org.slf4j.Logger LOG
private final org.apache.hadoop.conf.Configuration configuration
private final RegionInfo region
private final long timestamp
MajorCompactionRequest(org.apache.hadoop.conf.Configuration configuration, RegionInfo region, Set<String> stores, long timestamp)
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) throws IOException
IOException
Set<String> getStoresRequiringCompaction(Set<String> requestedStores) throws IOException
IOException
Connection getConnection(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOException
private boolean familyHasReferenceFile(HRegionFileSystem fileSystem, String family) 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–2019 The Apache Software Foundation. All rights reserved.