public void setTimeAndCounter(long[] time, TezCounterData counterHolder){
    if(time == null || time.length<3){
      time = new long[5];
    }
    this._totalTimeMs = time[0];
    this._shuffleTimeMs = time[1];
    this._sortTimeMs = time[2];
    if (time.length > 3)
      this._startTime = time[3];
    if (time.length > 4)
      this._finishTime = time[4];
    this._isSampled = true;
    this._counterHolder = counterHolder;


  }
Tez Task Level metadata holding data structure
app/com/linkedin/drelephant/tez/data/TezTaskData.java