org.apache.hadoop.hbase.regionserver.compactions
Class StripeCompactionPolicy.StripeCompactionRequest
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.StripeCompactionPolicy.StripeCompactionRequest
- Enclosing class:
- StripeCompactionPolicy
public abstract static class StripeCompactionPolicy.StripeCompactionRequest
- extends Object
Stripe compaction request wrapper.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
request
protected CompactionRequest request
majorRangeFromRow
protected byte[] majorRangeFromRow
majorRangeToRow
protected byte[] majorRangeToRow
StripeCompactionPolicy.StripeCompactionRequest
public StripeCompactionPolicy.StripeCompactionRequest(CompactionRequest request)
execute
public List<org.apache.hadoop.fs.Path> execute(StripeCompactor compactor,
CompactionThroughputController throughputController)
throws IOException
- Throws:
IOException
execute
public abstract List<org.apache.hadoop.fs.Path> execute(StripeCompactor compactor,
CompactionThroughputController 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
public void setMajorRange(byte[] startRow,
byte[] endRow)
- 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
public CompactionRequest getRequest()
setRequest
public void setRequest(CompactionRequest request)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.