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

    AmbryPartition partition = (AmbryPartition) o;
    return id == partition.id;
  }
Instantiate an AmbryPartition instance.
@param id the id associated with this partition.
@param partitionClass the partition class that this partition belongs to
@param clusterManagerQueryHelper {@link HelixClusterManagerQueryHelper} to query cluster information.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/AmbryPartition.java