private int computeHashCode() {
    final int prime = 31;
    int result = super.hashCode();
    result = prime * result + ((partition == null) ? 0 : partition.hashCode());
    result = prime * result + ((keyBucket == -1) ? 0 : keyBucket);
    return result;
  }
Constructs a Samza stream partition object based upon another Samza stream and a specified partition.
@param other Reference to an already existing Samza stream.
@param partition Reference to an already existing Samza partition.
samza-api/src/main/java/org/apache/samza/system/SystemStreamPartition.java