/** * Merge multiple MapFiles to one Mapfile * * @param inMapFiles * @param outMapFile * @throws IOException */ public void merge(Path[] inMapFiles, boolean deleteInputs, Path outMapFile) throws IOException { try { open(inMapFiles, outMapFile); mergePass(); } finally { close(); } if (deleteInputs) { for (int i = 0; i < inMapFiles.length; i++) { Path path = inMapFiles[i]; delete(path.getFileSystem(conf), path.toString()); } } }
MapFile.Merger merger = new MapFile.Merger(conf); merger.merge(in, true, new Path(TEST_DIR, TEST_METHOD_KEY));
MapFile.Merger merger = new MapFile.Merger(conf); merger.merge(in, true, new Path(TEST_DIR, TEST_METHOD_KEY));
/** * Merge multiple MapFiles to one Mapfile * * @param inMapFiles * @param outMapFile * @throws IOException */ public void merge(Path[] inMapFiles, boolean deleteInputs, Path outMapFile) throws IOException { try { open(inMapFiles, outMapFile); mergePass(); } finally { close(); } if (deleteInputs) { for (int i = 0; i < inMapFiles.length; i++) { Path path = inMapFiles[i]; delete(path.getFileSystem(conf), path.toString()); } } }
/** * Merge multiple MapFiles to one Mapfile * * @param inMapFiles * @param outMapFile * @throws IOException */ public void merge(Path[] inMapFiles, boolean deleteInputs, Path outMapFile) throws IOException { try { open(inMapFiles, outMapFile); mergePass(); } finally { close(); } if (deleteInputs) { for (int i = 0; i < inMapFiles.length; i++) { Path path = inMapFiles[i]; delete(path.getFileSystem(conf), path.toString()); } } }
/** * Merge multiple MapFiles to one Mapfile * * @param inMapFiles * @param outMapFile * @throws IOException */ public void merge(Path[] inMapFiles, boolean deleteInputs, Path outMapFile) throws IOException { try { open(inMapFiles, outMapFile); mergePass(); } finally { close(); } if (deleteInputs) { for (int i = 0; i < inMapFiles.length; i++) { Path path = inMapFiles[i]; delete(path.getFileSystem(conf), path.toString()); } } }
/** * Merge multiple MapFiles to one Mapfile * * @param inMapFiles * @param outMapFile * @throws IOException */ public void merge(Path[] inMapFiles, boolean deleteInputs, Path outMapFile) throws IOException { try { open(inMapFiles, outMapFile); mergePass(); } finally { close(); } if (deleteInputs) { for (int i = 0; i < inMapFiles.length; i++) { Path path = inMapFiles[i]; delete(path.getFileSystem(conf), path.toString()); } } }