private void recordSummary(final Path p, final ContentSummary cs) {
            final long csLength = cs.getLength();
            final long csFileCount = cs.getFileCount();
            final long csDirectoryCount = cs.getDirectoryCount();

            totalLength.addAndGet(csLength);
            totalFileCount.addAndGet(csFileCount);
            totalDirectoryCount.addAndGet(csDirectoryCount);

            ctx.addCS(p.toString(), cs);

            LOG.debug(
                "Cache Content Summary for {} length: {} file count: {} "
                    + "directory count: {}",
                path, csLength, csFileCount, csDirectoryCount);
          }
Performs a ContentSummary lookup over a set of paths using 1 or more
threads. The 'summary' argument is directly modified.

@param ctx
@param pathNeedProcess
@param work
@param summary
@param executor
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java