Class MajorCompactionRequest
java.lang.Object
org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest
- Direct Known Subclasses:
MajorCompactionTTLRequest
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Connection
private static final org.slf4j.Logger
protected final RegionInfo
-
Constructor Summary
ConstructorDescriptionMajorCompactionRequest
(Connection connection, RegionInfo region) MajorCompactionRequest
(Connection connection, RegionInfo region, Set<String> stores) -
Method Summary
Modifier and TypeMethodDescription(package private) Optional<MajorCompactionRequest>
createRequest
(Connection connection, Set<String> stores, long timestamp) protected boolean
familyHasReferenceFile
(HRegionFileSystem fileSystem, String family, long ts) (package private) HRegionFileSystem
(package private) List<org.apache.hadoop.fs.Path>
getReferenceFilePaths
(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path familyDir) (package private) RegionInfo
getStoresRequiringCompaction
(Set<String> requestedStores, long timestamp) (package private) static Optional<MajorCompactionRequest>
newRequest
(Connection connection, RegionInfo info, Set<String> stores, long timestamp) (package private) void
(package private) boolean
shouldCFBeCompacted
(HRegionFileSystem fileSystem, String family, long ts) protected boolean
shouldIncludeStore
(HRegionFileSystem fileSystem, String family, Collection<StoreFileInfo> storeFiles, long ts) toString()
-
Field Details
-
LOG
-
connection
-
region
-
stores
-
-
Constructor Details
-
MajorCompactionRequest
MajorCompactionRequest(Connection connection, RegionInfo region) -
MajorCompactionRequest
MajorCompactionRequest(Connection connection, RegionInfo region, Set<String> stores)
-
-
Method Details
-
newRequest
static Optional<MajorCompactionRequest> newRequest(Connection connection, RegionInfo info, Set<String> stores, long timestamp) throws IOException - Throws:
IOException
-
getRegion
-
getStores
-
setStores
-
createRequest
Optional<MajorCompactionRequest> createRequest(Connection connection, Set<String> stores, long timestamp) throws IOException - Throws:
IOException
-
getStoresRequiringCompaction
Set<String> getStoresRequiringCompaction(Set<String> requestedStores, long timestamp) throws IOException - Throws:
IOException
-
shouldCFBeCompacted
boolean shouldCFBeCompacted(HRegionFileSystem fileSystem, String family, long ts) throws IOException - Throws:
IOException
-
shouldIncludeStore
protected boolean shouldIncludeStore(HRegionFileSystem fileSystem, String family, Collection<StoreFileInfo> storeFiles, long ts) throws IOException - Throws:
IOException
-
familyHasReferenceFile
protected boolean familyHasReferenceFile(HRegionFileSystem fileSystem, String family, long ts) throws IOException - Throws:
IOException
-
getReferenceFilePaths
List<org.apache.hadoop.fs.Path> getReferenceFilePaths(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path familyDir) throws IOException - Throws:
IOException
-
getFileSystem
- Throws:
IOException
-
toString
-