@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null) { return false; } DrillIndexDefinition index1 = (DrillIndexDefinition) o; return tableName.equals(index1.tableName) && indexName.equals(index1.indexName) && indexType.equals(index1.indexType) && indexColumns.equals(index1.indexColumns); }
@Override public int hashCode() { final int prime = 31; final String fullName = tableName + indexName; int result = 1; result = prime * result + fullName.hashCode(); result = prime * result + indexType.hashCode(); return result; }