@Override
  public boolean equals(Object obj) {
    if(obj==null || obj.getClass()!= OperatorStats.class){
      return false;
    }
    OperatorStats o = (OperatorStats) obj;
    return Objects.equal(operatorId, o.operatorId) &&
        Objects.equal(outputRecords, o.outputRecords);
  }
Marker class to help with plan elements which will collect invalid statistics
ql/src/java/org/apache/hadoop/hive/ql/stats/OperatorStats.java