protected static class PartitionedMobCompactionRequest.CompactionPartition extends Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
endKey |
private List<org.apache.hadoop.fs.FileStatus> |
files |
private PartitionedMobCompactionRequest.CompactionPartitionId |
partitionId |
private byte[] |
startKey |
Constructor and Description |
---|
CompactionPartition(PartitionedMobCompactionRequest.CompactionPartitionId partitionId) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(org.apache.hadoop.fs.FileStatus file) |
byte[] |
getEndKey() |
int |
getFileCount() |
PartitionedMobCompactionRequest.CompactionPartitionId |
getPartitionId() |
byte[] |
getStartKey() |
List<org.apache.hadoop.fs.FileStatus> |
listFiles() |
void |
setEndKey(byte[] endKey)
Set end key of this partition, only if the input endKey is greater than
the current end key.
|
void |
setStartKey(byte[] startKey)
Set start key of this partition, only if the input startKey is less than
the current start key.
|
private PartitionedMobCompactionRequest.CompactionPartitionId partitionId
private byte[] startKey
private byte[] endKey
public CompactionPartition(PartitionedMobCompactionRequest.CompactionPartitionId partitionId)
public PartitionedMobCompactionRequest.CompactionPartitionId getPartitionId()
public void addFile(org.apache.hadoop.fs.FileStatus file)
public int getFileCount()
public byte[] getStartKey()
public void setStartKey(byte[] startKey)
public byte[] getEndKey()
public void setEndKey(byte[] endKey)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.