Exemplo n.º 1
0
 public override bool Equals(object o)
 {
     if (!base.Equals(o))
     {
         return(false);
     }
     Org.Apache.Hadoop.Mapreduce.TaskAttemptID that = (Org.Apache.Hadoop.Mapreduce.TaskAttemptID
                                                       )o;
     return(this.taskId.Equals(that.taskId));
 }
Exemplo n.º 2
0
        /// <summary>Compare TaskIds by first tipIds, then by task numbers.</summary>
        public override int CompareTo(ID o)
        {
            Org.Apache.Hadoop.Mapreduce.TaskAttemptID that = (Org.Apache.Hadoop.Mapreduce.TaskAttemptID
                                                              )o;
            int tipComp = this.taskId.CompareTo(that.taskId);

            if (tipComp == 0)
            {
                return(this.id - that.id);
            }
            else
            {
                return(tipComp);
            }
        }