private boolean getNextPath() throws Exception { while (iterPath.hasNext()) { currPath = iterPath.next(); currDesc = iterPartDesc.next(); if (isNonNativeTable) { return true; } FileSystem fs = currPath.getFileSystem(job); if (fs.exists(currPath)) { for (FileStatus fStat : listStatusUnderPath(fs, currPath)) { if (fStat.getLen() > 0) { return true; } } } } return false; }
private boolean getNextPath() throws Exception { while (iterPath.hasNext()) { currPath = iterPath.next(); currDesc = iterPartDesc.next(); if (isNonNativeTable) { return true; } FileSystem fs = currPath.getFileSystem(job); if (fs.exists(currPath)) { if (extractValidWriteIdList() != null && AcidUtils.isInsertOnlyTable(currDesc.getTableDesc().getProperties())) { return true; } for (FileStatus fStat : listStatusUnderPath(fs, currPath)) { if (fStat.getLen() > 0) { return true; } } } } return false; }
private boolean getNextPath() throws Exception { while (iterPath.hasNext()) { currPath = iterPath.next(); currDesc = iterPartDesc.next(); if (isNonNativeTable) { return true; } FileSystem fs = currPath.getFileSystem(job); if (fs.exists(currPath)) { for (FileStatus fStat : listStatusUnderPath(fs, currPath)) { if (fStat.getLen() > 0) { return true; } } } } return false; }
FileSystem fs = currPath.getFileSystem(job); if (fs.exists(currPath)) { FileStatus[] fStats = listStatusUnderPath(fs, currPath); for (FileStatus fStat : fStats) { if (fStat.getLen() > 0) { FileStatus[] fStats = listStatusUnderPath(fs, nxt); for (FileStatus fStat : fStats) { if (fStat.getLen() > 0) {