public Map<String, String> getLocalHdfsLocationMap(SessionState.ResourceType type){
    Map<String, String> result = local_hdfs_resource_map.get(type);
    if (result == null) {
      result = new HashMap<String, String>();
      local_hdfs_resource_map.put(type, result);
    }
    return result;
  }
Retrieves the query cache for the given query.
@param queryId the unique identifier of the query
@return the cache for the query
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java