File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
hbase-client/src/main/java/org/apache/hadoop/hbase/client/replication Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,15 @@ public NamespaceOverride(String sinkNamespace) {
31
31
public String getSinkNamespace () {
32
32
return sinkNamespace ;
33
33
}
34
+
35
+ @ Override
36
+ public boolean equals (Object o ) {
37
+ if (this == o ) {
38
+ return true ;
39
+ } else if (!(o instanceof NamespaceOverride )) {
40
+ return false ;
41
+ }
42
+ NamespaceOverride other = (NamespaceOverride ) o ;
43
+ return other .getSinkNamespace ().equals (getSinkNamespace ());
44
+ }
34
45
}
Original file line number Diff line number Diff line change @@ -32,4 +32,15 @@ public TableNameOverride(TableName sinkTableName) {
32
32
public TableName getSinkTableName () {
33
33
return sinkTableName ;
34
34
}
35
+
36
+ @ Override
37
+ public boolean equals (Object o ) {
38
+ if (this == o ) {
39
+ return true ;
40
+ } else if (!(o instanceof TableNameOverride )) {
41
+ return false ;
42
+ }
43
+ TableNameOverride other = (TableNameOverride ) o ;
44
+ return other .getSinkTableName ().equals (getSinkTableName ());
45
+ }
35
46
}
You can’t perform that action at this time.
0 commit comments