public boolean isMRTmpFileURI(String uriStr) {
    return (uriStr.indexOf(executionId) != -1) &&
        (uriStr.indexOf(MR_PREFIX) != -1);
  }
Check if path is for intermediate data
@return true if a uri is a temporary uri for map-reduce intermediate data,
        false otherwise
ql/src/java/org/apache/hadoop/hive/ql/Context.java