From 3318b4bc6d58a6f058b9163fb2a1712f346cff53 Mon Sep 17 00:00:00 2001 From: Jan Hentschel Date: Sat, 27 Jul 2019 15:19:56 +0200 Subject: [PATCH] HBASE-22745 Removed deprecated methods from Append Signed-off-by: stack --- .../apache/hadoop/hbase/client/Append.java | 25 ------------------- .../apache/hadoop/hbase/rest/RowResource.java | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Append.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Append.java index 3a08d687fbbb..90dc411b5fa2 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Append.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Append.java @@ -146,20 +146,6 @@ public Append(byte[] row, long ts, NavigableMap> familyMap) super(row, ts, familyMap); } - /** - * Add the specified column and value to this Append operation. - * @param family family name - * @param qualifier column qualifier - * @param value value to append to specified column - * @return this - * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. - * Use {@link #addColumn(byte[], byte[], byte[])} instead - */ - @Deprecated - public Append add(byte [] family, byte [] qualifier, byte [] value) { - return this.addColumn(family, qualifier, value); - } - /** * Add the specified column and value to this Append operation. * @param family family name @@ -209,17 +195,6 @@ public Append setDurability(Durability d) { return (Append) super.setDurability(d); } - /** - * Method for setting the Append's familyMap - * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. - * Use {@link Append#Append(byte[], long, NavigableMap)} instead - */ - @Deprecated - @Override - public Append setFamilyCellMap(NavigableMap> map) { - return (Append) super.setFamilyCellMap(map); - } - @Override public Append setClusterIds(List clusterIds) { return (Append) super.setClusterIds(clusterIds); diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RowResource.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RowResource.java index aabcff6784c6..3ac747238dd9 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RowResource.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RowResource.java @@ -751,7 +751,7 @@ Response append(final CellSetModel model) { .type(MIMETYPE_TEXT).entity("Bad request: Column incorrectly specified." + CRLF) .build(); } - append.add(parts[0], parts[1], cell.getValue()); + append.addColumn(parts[0], parts[1], cell.getValue()); } if (LOG.isDebugEnabled()) {