@Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      ReplicaConfig that = (ReplicaConfig) o;
      return replicaCapacityInBytes == that.replicaCapacityInBytes && Objects.equals(partitionClass,
          that.partitionClass);
    }
@return the partition class of this replica.
ambry-api/src/main/java/com/github/ambry/clustermap/DataNodeConfig.java