public boolean equals(Task that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_taskId = true && this.isSetTaskId();
    boolean that_present_taskId = true && that.isSetTaskId();
    if (this_present_taskId || that_present_taskId) {
      if (!(this_present_taskId && that_present_taskId))
        return false;
      if (!this.taskId.equals(that.taskId))
        return false;
    }

    boolean this_present_taskType = true && this.isSetTaskType();
    boolean that_present_taskType = true && that.isSetTaskType();
    if (this_present_taskType || that_present_taskType) {
      if (!(this_present_taskType && that_present_taskType))
        return false;
      if (!this.taskType.equals(that.taskType))
        return false;
    }

    boolean this_present_taskAttributes = true && this.isSetTaskAttributes();
    boolean that_present_taskAttributes = true && that.isSetTaskAttributes();
    if (this_present_taskAttributes || that_present_taskAttributes) {
      if (!(this_present_taskAttributes && that_present_taskAttributes))
        return false;
      if (!this.taskAttributes.equals(that.taskAttributes))
        return false;
    }

    boolean this_present_taskCounters = true && this.isSetTaskCounters();
    boolean that_present_taskCounters = true && that.isSetTaskCounters();
    if (this_present_taskCounters || that_present_taskCounters) {
      if (!(this_present_taskCounters && that_present_taskCounters))
        return false;
      if (!this.taskCounters.equals(that.taskCounters))
        return false;
    }

    boolean this_present_operatorGraph = true && this.isSetOperatorGraph();
    boolean that_present_operatorGraph = true && that.isSetOperatorGraph();
    if (this_present_operatorGraph || that_present_operatorGraph) {
      if (!(this_present_operatorGraph && that_present_operatorGraph))
        return false;
      if (!this.operatorGraph.equals(that.operatorGraph))
        return false;
    }

    boolean this_present_operatorList = true && this.isSetOperatorList();
    boolean that_present_operatorList = true && that.isSetOperatorList();
    if (this_present_operatorList || that_present_operatorList) {
      if (!(this_present_operatorList && that_present_operatorList))
        return false;
      if (!this.operatorList.equals(that.operatorList))
        return false;
    }

    boolean this_present_done = true;
    boolean that_present_done = true;
    if (this_present_done || that_present_done) {
      if (!(this_present_done && that_present_done))
        return false;
      if (this.done != that.done)
        return false;
    }

    boolean this_present_started = true;
    boolean that_present_started = true;
    if (this_present_started || that_present_started) {
      if (!(this_present_started && that_present_started))
        return false;
      if (this.started != that.started)
        return false;
    }

    return true;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java