HBASE-25571: Compilation error in branch-2 after HBASE-25364 (#2951)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
2d5a5db80e
commit
2e31d1d46e
|
@ -52,6 +52,7 @@ import org.apache.hadoop.hbase.CellBuilderFactory;
|
|||
import org.apache.hadoop.hbase.CellBuilderType;
|
||||
import org.apache.hadoop.hbase.CellComparatorImpl;
|
||||
import org.apache.hadoop.hbase.CellUtil;
|
||||
import org.apache.hadoop.hbase.ExtendedCellBuilderFactory;
|
||||
import org.apache.hadoop.hbase.HBaseClassTestRule;
|
||||
import org.apache.hadoop.hbase.HBaseCommonTestingUtility;
|
||||
import org.apache.hadoop.hbase.HBaseConfiguration;
|
||||
|
@ -679,6 +680,17 @@ public class TestHFile {
|
|||
assertTrue(PrivateCellUtil.compareKeyIgnoresMvcc(CellComparatorImpl.COMPARATOR, mid, right) == 0);
|
||||
}
|
||||
|
||||
private Cell getCell(byte[] row, byte[] family, byte[] qualifier) {
|
||||
return ExtendedCellBuilderFactory.create(CellBuilderType.DEEP_COPY)
|
||||
.setRow(row)
|
||||
.setFamily(family)
|
||||
.setQualifier(qualifier)
|
||||
.setTimestamp(HConstants.LATEST_TIMESTAMP)
|
||||
.setType(KeyValue.Type.Maximum.getCode())
|
||||
.setValue(HConstants.EMPTY_BYTE_ARRAY)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetShortMidpoint() {
|
||||
Cell left = CellUtil.createCell(Bytes.toBytes("a"), Bytes.toBytes("a"), Bytes.toBytes("a"));
|
||||
|
|
Loading…
Reference in New Issue