// set query info
queryObject.setClientQueryInfo(theClientRequest);
// now check cache for persistent query cache info ...
PersistentQueryInfo persistentQueryInfo = getPersistentQueryInfo(queryObject.getCanonicalQueryId(),theClientRequest.getMaxAge());
boolean cachedQueryAvailable = false;
// ok, cached query found ...
if (persistentQueryInfo != null) {
LOG.info("Existing Query Id found:" + persistentQueryInfo.getQueryId() + " for Query Request");
// found cached query... set id of source query object
queryObject.setQueryId(persistentQueryInfo.getQueryId());
// temporarily set the working directory ...
Path hdfsWorkingDir = new Path(_hdfsResultsDir,Long.toString(queryObject.getQueryId()));
// and set it into query common info
queryObject.getCommonQueryInfo().setQueryResultPath(hdfsWorkingDir.toString());
// try to validate it ..