@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Vertex vertex = (Vertex) o;
    return Objects.equals(name, vertex.name) &&
            Objects.equals(stage, vertex.stage) &&
            Objects.equals(vertexObject, vertex.vertexObject);
  }
We check if a vertex has multiple reduce operators.
@throws JSONException
common/src/java/org/apache/hadoop/hive/common/jsonexplain/Vertex.java