MCPcopy Create free account
hub / github.com/apache/kudu / equals

Method equals

java/kudu-client/src/main/java/org/apache/kudu/Schema.java:463–484  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

461 }
462
463 @Override
464 public boolean equals(Object obj) {
465 if (obj == this) {
466 return true;
467 }
468 if (!(obj instanceof Schema)) {
469 return false;
470 }
471 Schema that = (Schema) obj;
472 if (this.getPrimaryKeyColumnCount() != that.getPrimaryKeyColumnCount()) {
473 return false;
474 }
475 if (this.getColumns().size() != that.getColumns().size()) {
476 return false;
477 }
478 for (int i = 0; i < this.getColumns().size(); i++) {
479 if (!this.getColumnByIndex(i).equals(that.getColumnByIndex(i))) {
480 return false;
481 }
482 }
483 return true;
484 }
485
486 @Override
487 public int hashCode() {

Callers 15

testEqualsMethod · 0.95
test_getitem_stringMethod · 0.45
test_schema_equalsMethod · 0.45
test_column_equalsMethod · 0.45
getTypeForNameMethod · 0.45
newKuduTableMethod · 0.45
onDropTableMethod · 0.45
onAlterTableMethod · 0.45
isKuduTableMethod · 0.45

Calls 4

getColumnsMethod · 0.95
getColumnByIndexMethod · 0.95
sizeMethod · 0.45

Tested by 13

testEqualsMethod · 0.76
test_getitem_stringMethod · 0.36
test_schema_equalsMethod · 0.36
test_column_equalsMethod · 0.36
newKuduTableMethod · 0.36
isVarSetAndNonEmptyMethod · 0.36
startMethod · 0.36
getSanitizerTypeMethod · 0.36
getBinaryPropsMethod · 0.36