@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof Partition)) {
      return false;
    }

    Partition partition = (Partition) o;

    if (partitionId != partition.partitionId) {
      return false;
    }
    if (!system.equals(partition.system)) {
      return false;
    }
    return stream.equals(partition.stream);
  }
Provides a client view of the samza system stream partition.
Includes the system name, stream name and partition id
samza-rest/src/main/java/org/apache/samza/rest/model/Partition.java