Interface CompactionRequester
- All Known Implementing Classes:
CompactSplit
Request a compaction.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
requestCompaction
(HRegion region, String why, int priority, CompactionLifeCycleTracker tracker, User user) Request compaction on all the stores of the given region.void
requestCompaction
(HRegion region, HStore store, String why, int priority, CompactionLifeCycleTracker tracker, User user) Request compaction on the given store.void
requestSystemCompaction
(HRegion region, HStore store, String why, boolean giveUpIfRequestedOrCompacting) Request system compaction on the given store.void
switchCompaction
(boolean onOrOff) on/off compaction
-
Method Details
-
requestCompaction
void requestCompaction(HRegion region, String why, int priority, CompactionLifeCycleTracker tracker, @Nullable User user) throws IOException Request compaction on all the stores of the given region.- Throws:
IOException
-
requestCompaction
void requestCompaction(HRegion region, HStore store, String why, int priority, CompactionLifeCycleTracker tracker, @Nullable User user) throws IOException Request compaction on the given store.- Throws:
IOException
-
requestSystemCompaction
void requestSystemCompaction(HRegion region, HStore store, String why, boolean giveUpIfRequestedOrCompacting) throws IOException Request system compaction on the given store.- Throws:
IOException
-
switchCompaction
on/off compaction
-