diff --git hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java index 950464c..0860d5f 100644 --- hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java +++ hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java @@ -356,6 +356,19 @@ public final class CellUtil { return cell.getTypeByte() == Type.DeleteFamily.getCode(); } + public static boolean isDeleteFamilyVersion(final Cell cell) { + return cell.getTypeByte() == Type.DeleteFamilyVersion.getCode(); + } + + public static Cell createFirstOnRowColTS(Cell cell, long ts) { + return new KeyValue(cell.getRowArray(), cell.getFamilyArray(), cell.getQualifierArray(), ts, + Type.Maximum, cell.getValueArray()); + } + + public static Cell createLastOnRowCol(Cell cell) { + return new KeyValue(cell.getRowArray(), cell.getFamilyArray(), cell.getQualifierArray(), + HConstants.OLDEST_TIMESTAMP, Type.Minimum, null); + } /** * @param cell * @return Estimate of the cell size in bytes.