public ContentSummary getCS(Path path) { return getCS(path.toString()); }
public ContentSummary getCS(Path path) { return getCS(path.toString()); }
Path path = entry.getKey(); List<String> aliasList = entry.getValue(); ContentSummary cs = context.getCS(path); if (cs != null) { long size = cs.getLength();
Path path = entry.getKey(); List<String> aliasList = entry.getValue(); ContentSummary cs = context.getCS(path); if (cs != null) { long size = cs.getLength();
public static boolean isEmptyPath(JobConf job, Path dirPath, Context ctx) throws Exception { if (ctx != null) { ContentSummary cs = ctx.getCS(dirPath); if (cs != null) { if (LOG.isDebugEnabled()) { LOG.debug("Content Summary cached for {} length: {} num files: {} " + "num directories: {}", dirPath, cs.getLength(), cs.getFileCount(), cs.getDirectoryCount()); } return (cs.getLength() == 0 && cs.getFileCount() == 0 && cs.getDirectoryCount() <= 1); } else { LOG.debug("Content Summary not cached for {}", dirPath); } } return isEmptyPath(job, dirPath); }
public static boolean isEmptyPath(JobConf job, Path dirPath, Context ctx) throws Exception { if (ctx != null) { ContentSummary cs = ctx.getCS(dirPath); if (cs != null) { LOG.info("Content Summary " + dirPath + "length: " + cs.getLength() + " num files: " + cs.getFileCount() + " num directories: " + cs.getDirectoryCount()); return (cs.getLength() == 0 && cs.getFileCount() == 0 && cs.getDirectoryCount() <= 1); } else { LOG.info("Content Summary not cached for " + dirPath); } } return isEmptyPath(job, dirPath); }
ContentSummary cs = ctx.getCS(path); if (cs == null) { if (path == null) {
ContentSummary cs = ctx.getCS(path); if (cs == null) { if (path == null) {
public ContentSummary getCS(Path path) { return getCS(path.toString()); }
String path = entry.getKey(); List<String> aliasList = entry.getValue(); ContentSummary cs = context.getCS(path); if (cs != null) { long size = cs.getLength();
ContentSummary cs = ctx.getCS(path); if (cs == null) { if (path == null) {
ContentSummary cs = ctx.getCS(path); if (cs == null) { JobConf jobConf = new JobConf(ctx.getConf());
public static boolean isEmptyPath(JobConf job, Path dirPath, Context ctx) throws Exception { if (ctx != null) { ContentSummary cs = ctx.getCS(dirPath); if (cs != null) { LOG.info("Content Summary " + dirPath + "length: " + cs.getLength() + " num files: " + cs.getFileCount() + " num directories: " + cs.getDirectoryCount()); return (cs.getLength() == 0 && cs.getFileCount() == 0 && cs.getDirectoryCount() <= 1); } else { LOG.info("Content Summary not cached for " + dirPath); } } return isEmptyPath(job, dirPath); }