Class MajorCompactionTTLRequest
java.lang.Object
org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest
org.apache.hadoop.hbase.util.compaction.MajorCompactionTTLRequest
This request helps determine if a region has to be compacted based on table's TTL.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest
connection, region
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Optional<MajorCompactionRequest>
createRequest
(Connection connection, TableDescriptor htd) private long
(package private) static Optional<MajorCompactionRequest>
newRequest
(Connection connection, RegionInfo info, TableDescriptor htd) protected boolean
shouldIncludeStore
(HRegionFileSystem fileSystem, String family, Collection<StoreFileInfo> storeFiles, long ts) Methods inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest
createRequest, familyHasReferenceFile, getFileSystem, getReferenceFilePaths, getRegion, getStoreFileTracker, getStores, getStoresRequiringCompaction, newRequest, setStores, shouldCFBeCompacted, toString
-
Field Details
-
LOG
-
-
Constructor Details
-
MajorCompactionTTLRequest
MajorCompactionTTLRequest(Connection connection, RegionInfo region)
-
-
Method Details
-
newRequest
static Optional<MajorCompactionRequest> newRequest(Connection connection, RegionInfo info, TableDescriptor htd) throws IOException - Throws:
IOException
-
createRequest
private Optional<MajorCompactionRequest> createRequest(Connection connection, TableDescriptor htd) throws IOException - Throws:
IOException
-
getStoresRequiringCompaction
- Throws:
IOException
-
getColFamilyCutoffTime
-
shouldIncludeStore
protected boolean shouldIncludeStore(HRegionFileSystem fileSystem, String family, Collection<StoreFileInfo> storeFiles, long ts) throws IOException - Overrides:
shouldIncludeStore
in classMajorCompactionRequest
- Throws:
IOException
-