@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof LocalityModel)) {
      return false;
    }
    LocalityModel that = (LocalityModel) o;
    return Objects.deepEquals(processorLocalities, that.processorLocalities);
  }
Construct locality model for the job from the input map of processor localities.
@param processorLocalities host locality information for the job keyed by processor id
samza-api/src/main/java/org/apache/samza/job/model/LocalityModel.java