public MapRecordProcessor(final JobConf jconf, final ProcessorContext context) throws Exception {
super(jconf, context);
ObjectCache cache = ObjectCacheFactory.getCache(jconf);
execContext = new ExecMapperContext(jconf);
execContext.setJc(jconf);
cacheKeys = new ArrayList<String>();
String queryId = HiveConf.getVar(jconf, HiveConf.ConfVars.HIVEQUERYID);
String key = queryId + MAP_PLAN_KEY;
cacheKeys.add(key);
mapWork = (MapWork) cache.retrieve(key, new Callable<Object>() {
@Override
public Object call() {
return Utilities.getMapWork(jconf);
}
});
Utilities.setMapWork(jconf, mapWork);
mergeWorkList = getMergeWorkList(jconf, key, queryId, cache, cacheKeys);
}