You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2019/07/29 07:10:56 UTC
[hbase] branch master updated: HBASE-22754 Removed deprecated
methods from Increment (#421)
This is an automated email from the ASF dual-hosted git repository.
psomogyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 41490e7 HBASE-22754 Removed deprecated methods from Increment (#421)
41490e7 is described below
commit 41490e792ad7673dcba327b16b095f2355e4a863
Author: Jan Hentschel <ja...@ultratendency.com>
AuthorDate: Mon Jul 29 09:10:51 2019 +0200
HBASE-22754 Removed deprecated methods from Increment (#421)
Signed-off-by: Peter Somogyi <ps...@apache.org>
---
.../org/apache/hadoop/hbase/client/Increment.java | 41 ----------------------
1 file changed, 41 deletions(-)
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java
index d7d1116..60304cc 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Increment.java
@@ -262,36 +262,6 @@ public class Increment extends Mutation {
return sb.toString();
}
- /**
- * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.
- * No replacement.
- */
- @Deprecated
- @Override
- public int hashCode() {
- // TODO: This is wrong. Can't have two gets the same just because on same row. But it
- // matches how equals works currently and gets rid of the findbugs warning.
- return Bytes.hashCode(this.getRow());
- }
-
- /**
- * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.
- * Use {@link Row#COMPARATOR} instead
- */
- @Deprecated
- @Override
- public boolean equals(Object obj) {
- // TODO: This is wrong. Can't have two the same just because on same row.
- if (this == obj) {
- return true;
- }
- if (obj == null || getClass() != obj.getClass()) {
- return false;
- }
- Row other = (Row) obj;
- return compareTo(other) == 0;
- }
-
@Override
protected long extraHeapSize(){
return HEAP_OVERHEAD;
@@ -312,17 +282,6 @@ public class Increment extends Mutation {
return (Increment) super.setDurability(d);
}
- /**
- * Method for setting the Increment's familyMap
- * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.
- * Use {@link Increment#Increment(byte[], long, NavigableMap)} instead
- */
- @Deprecated
- @Override
- public Increment setFamilyCellMap(NavigableMap<byte[], List<Cell>> map) {
- return (Increment) super.setFamilyCellMap(map);
- }
-
@Override
public Increment setClusterIds(List<UUID> clusterIds) {
return (Increment) super.setClusterIds(clusterIds);