Class StripeCompactionPolicy.StripeCompactionRequest
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.StripeCompactionPolicy.StripeCompactionRequest
- Direct Known Subclasses:
StripeCompactionPolicy.BoundaryStripeCompactionRequest
,StripeCompactionPolicy.SplitStripeCompactionRequest
- Enclosing class:
- StripeCompactionPolicy
Stripe compaction request wrapper.
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected byte[]
protected CompactionRequestImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.hadoop.fs.Path>
execute
(StripeCompactor compactor, ThroughputController throughputController) abstract List<org.apache.hadoop.fs.Path>
execute
(StripeCompactor compactor, ThroughputController throughputController, User user) Executes the request against compactor (essentially, just calls correct overload of compact method), to simulate more dynamic dispatch.void
setMajorRange
(byte[] startRow, byte[] endRow) Sets compaction "major range".void
setRequest
(CompactionRequestImpl request)
-
Field Details
-
request
-
majorRangeFromRow
-
majorRangeToRow
-
-
Constructor Details
-
StripeCompactionRequest
-
-
Method Details
-
execute
public List<org.apache.hadoop.fs.Path> execute(StripeCompactor compactor, ThroughputController throughputController) throws IOException - Throws:
IOException
-
execute
public abstract List<org.apache.hadoop.fs.Path> execute(StripeCompactor compactor, ThroughputController throughputController, User user) throws IOException Executes the request against compactor (essentially, just calls correct overload of compact method), to simulate more dynamic dispatch.- Parameters:
compactor
- Compactor.- Returns:
- result of compact(...)
- Throws:
IOException
-
setMajorRange
Sets compaction "major range". Major range is the key range for which all the files are included, so they can be treated like major-compacted files.- Parameters:
startRow
- Left boundary, inclusive.endRow
- Right boundary, exclusive.
-
getRequest
-
setRequest
-