public void resetStream() {
    if (initialized) {
      resDirFilesNum = 0;
      initialized = false;
    }
  }
@param resDir
         the resDir to set
ql/src/java/org/apache/hadoop/hive/ql/Context.java