@Override public boolean accept(Path file) { return !lCtx.isMRTmpFileURI(file.toUri().getPath()); } };
@Override public boolean accept(Path file) { return !lCtx.isMRTmpFileURI(file.toUri().getPath()); } };
if (!ctx.isMRTmpFileURI(dest_path.toUri().toString())) { idToTableNameMap.put(String.valueOf(destTableId), dest_path.toUri().toString()); currentTableId = destTableId;
if (!ctx.isMRTmpFileURI(destinationPath.toUri().toString())) { idToTableNameMap.put(String.valueOf(destTableId), destinationPath.toUri().toString()); currentTableId = destTableId;
@Override public boolean accept(Path file) { return !lCtx.isMRTmpFileURI(file.toUri().getPath()); } };
public boolean accept(Path file) { return !lCtx.isMRTmpFileURI(file.toUri().getPath()); } };
/** * Given a mapping from paths to objects, localize any MR tmp paths * @param map mapping from paths to objects */ public void localizeKeys(Map<String, Object> map) { for (Map.Entry<String, Object> entry: map.entrySet()) { String path = entry.getKey(); if (isMRTmpFileURI(path)) { Object val = entry.getValue(); map.remove(path); map.put(localizeMRTmpFileURI(path), val); } } }
/** * Given a list of paths, localize any MR tmp paths contained therein * @param paths list of paths to be localized */ public void localizePaths(List<String> paths) { Iterator<String> iter = paths.iterator(); List<String> toAdd = new ArrayList<String> (); while(iter.hasNext()) { String path = iter.next(); if (isMRTmpFileURI(path)) { iter.remove(); toAdd.add(localizeMRTmpFileURI(path)); } } paths.addAll(toAdd); }
@Override protected void localizeMRTmpFilesImpl(Context ctx) { String s = work.getTblDir(); if ((s != null) && ctx.isMRTmpFileURI(s)) { work.setTblDir(ctx.localizeMRTmpFileURI(s)); } ArrayList<String> ls = work.getPartDir(); if (ls != null) { ctx.localizePaths(ls); } }
for (FetchWork fw : m.values()) { String s = fw.getTblDir(); if ((s != null) && ctx.isMRTmpFileURI(s)) { fw.setTblDir(ctx.localizeMRTmpFileURI(s)); FileSinkDesc fdesc = ((FileSinkOperator) op).getConf(); String s = fdesc.getDirName(); if ((s != null) && ctx.isMRTmpFileURI(s)) { fdesc.setDirName(ctx.localizeMRTmpFileURI(s));
if (!ctx.isMRTmpFileURI(destStr)) { idToTableNameMap.put(String.valueOf(destTableId), destStr); currentTableId = destTableId;
if (!ctx.isMRTmpFileURI(dest_path.toUri().toString())) { idToTableNameMap.put(String.valueOf(destTableId), dest_path.toUri().toString()); currentTableId = destTableId;