private void calculateEntrySize(CacheEntry entry, FetchWork fetchWork) throws IOException {
    Path queryResultsPath = fetchWork.getTblDir();
    FileSystem resultsFs = queryResultsPath.getFileSystem(conf);
    ContentSummary cs = resultsFs.getContentSummary(queryResultsPath);
    entry.size = cs.getLength();
  }
Check that the cache entry matches the lookupInfo.
@param lookupInfo
@param entry
@param entriesToRemove Set of entries to be removed after exiting read lock section.
                       If the entry is found to be invalid it will be added to this set.
@return
ql/src/java/org/apache/hadoop/hive/ql/cache/results/QueryResultsCache.java