@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    PartitionLayout that = (PartitionLayout) o;

    if (!clusterName.equals(that.clusterName)) {
      return false;
    }
    return hardwareLayout.equals(that.hardwareLayout);
  }
Gets Partition with specified byte-serialized ID.

@param stream byte-serialized partition ID
@return requested Partition else null.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/PartitionLayout.java