From e1224b4b665d32d79e209a969f144b5402ba3197 Mon Sep 17 00:00:00 2001 From: no_apologies Date: Sat, 5 Aug 2017 12:49:08 +0800 Subject: [PATCH] Introduce Delete.add as a replacement for Delete#addDeleteMarker --- .../src/main/java/org/apache/hadoop/hbase/client/Delete.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Delete.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Delete.java index 351d8a6..df4ae12 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Delete.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Delete.java @@ -151,6 +151,16 @@ public class Delete extends Mutation implements Comparable { } /** + * Add an existing delete marker to this Delete object. + * @param kv An existing KeyValue of type "delete". + * @return this for invocation chaining + * @throws IOException + */ + public Delete add(Cell kv) throws IOException { + return addDeleteMarker(kv); + } + + /** * Advanced use only. * Add an existing delete marker to this Delete object. * @param kv An existing KeyValue of type "delete". @@ -158,6 +168,7 @@ public class Delete extends Mutation implements Comparable { * @throws IOException */ @SuppressWarnings("unchecked") + @Deprecated public Delete addDeleteMarker(Cell kv) throws IOException { // TODO: Deprecate and rename 'add' so it matches how we add KVs to Puts. if (!CellUtil.isDelete(kv)) { -- 2.10.1