public abstract static class StripeCompactionPolicy.StripeCompactionRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
majorRangeFromRow |
protected byte[] |
majorRangeToRow |
protected CompactionRequestImpl |
request |
Constructor and Description |
---|
StripeCompactionRequest(CompactionRequestImpl request) |
Modifier and Type | Method and Description |
---|---|
List<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.
|
CompactionRequestImpl |
getRequest() |
void |
setMajorRange(byte[] startRow,
byte[] endRow)
Sets compaction "major range".
|
void |
setRequest(CompactionRequestImpl request) |
protected CompactionRequestImpl request
protected byte[] majorRangeFromRow
protected byte[] majorRangeToRow
public StripeCompactionRequest(CompactionRequestImpl request)
public List<org.apache.hadoop.fs.Path> execute(StripeCompactor compactor, ThroughputController throughputController) throws IOException
IOException
public abstract List<org.apache.hadoop.fs.Path> execute(StripeCompactor compactor, ThroughputController throughputController, User user) throws IOException
compactor
- Compactor.IOException
public void setMajorRange(byte[] startRow, byte[] endRow)
startRow
- Left boundary, inclusive.endRow
- Right boundary, exclusive.public CompactionRequestImpl getRequest()
public void setRequest(CompactionRequestImpl request)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.