/** * Extracts file to a directory. Read mode only. * * @param fs * filesystem of output file * @param dirPath * path to extract to */ public void exportData(FileSystem fs, Path dirPath) { exportData(fs, dirPath, NamingStrategy.KEY, new ExtractionState(), false, 0); }
utility.exportDataToZip(zos, np, nps, autoExtension, offset); } else { utility.exportData(outputPathOrUri, np, nps, autoExtension, offset);
/** * Extracts file to a directory. Read mode only. * * @param uriOrPath * path or uri to extract to. * @throws IOException */ public void exportData(String uriOrPath) throws IOException { exportData(uriOrPath, NamingStrategy.KEY, new ExtractionState(), false, 0); }
/** * Extracts file to a directory. Read mode only. * * @param uriOrPath * path or uri to extract to. * @throws IOException */ public void exportData(String uriOrPath) throws IOException { exportData(uriOrPath, NamingStrategy.KEY, new ExtractionState(), false, 0); }
/** * Extracts file to a directory. Read mode only. * * @param fs * filesystem of output file * @param dirPath * path to extract to */ public void exportData(FileSystem fs, Path dirPath) { exportData(fs, dirPath, NamingStrategy.KEY, new ExtractionState(), false, 0); }
/** * Extracts file to a directory. Read mode only. * * @param uriOrPath * path or uri to extract to. * @param naming * the naming strategy * @param extrState * the extraction state * @param addExtension * if true, then file extensions are added to each record * automatically * @param offset * offset from which to start. Can be used to reduce number of * files extracted. * @throws IOException */ public void exportData(String uriOrPath, NamingStrategy naming, ExtractionState extrState, boolean addExtension, long offset) throws IOException { FileSystem fs = null; Path p = null; if (uriOrPath != null) { final URI uri = convertToURI(uriOrPath); fs = getFileSystem(uri); p = new Path(uri.toString()); } exportData(fs, p, naming, extrState, addExtension, offset); }
/** * Extracts file to a directory. Read mode only. * * @param uriOrPath * path or uri to extract to. * @param naming * the naming strategy * @param extrState * the extraction state * @param addExtension * if true, then file extensions are added to each record * automatically * @param offset * offset from which to start. Can be used to reduce number of * files extracted. * @throws IOException */ public void exportData(String uriOrPath, NamingStrategy naming, ExtractionState extrState, boolean addExtension, long offset) throws IOException { FileSystem fs = null; Path p = null; if (uriOrPath != null) { final URI uri = convertToURI(uriOrPath); fs = getFileSystem(uri); p = new Path(uri.toString()); } exportData(fs, p, naming, extrState, addExtension, offset); }
centroidsPath.toUri(), true); final SelectTopKDump dump = new SelectTopKDump(options.k); utility.exportData(NamingStrategy.KEY, new ExtractionState(), 0, dump); utility = new IntBytesSequenceMemoryUtility(newcentroidsPath.toUri(), true); final SelectTopKDump neededdump = new SelectTopKDump(randomNeeded); utility.exportData(NamingStrategy.KEY, new ExtractionState(), 0, neededdump); newcentroids = neededdump.centroids;