@Override
  public int hashCode() {
    return partition;
  }
Constructs a new Samza stream partition from a specified partition number.
@param partition An integer identifying the partition in a Samza stream.
samza-api/src/main/java/org/apache/samza/Partition.java