/** Stores a big array to a file given by a pathname. * * @param array a big array whose elements will be written to {@code filename}. * @param filename a filename. */ public static void storeLongs(final long array[][], final CharSequence filename) throws IOException { storeLongs(array, new File(filename.toString())); } /** Stores the element returned by an iterator to a given data output.
/** Stores the element returned by an iterator to a file given by a pathname. * * @param i an iterator whose output will be written to {@code filename}. * @param filename a filename. */ public static void storeLongs(final LongIterator i, final CharSequence filename) throws IOException { storeLongs(i, new File(filename.toString())); } /** A wrapper that exhibits the content of a data input stream as a type-specific iterator. */
/** Stores an array fragment to a file given by a pathname. * * @param array an array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param filename a filename. */ public static void storeLongs(final long array[], final int offset, final int length, final CharSequence filename) throws IOException { storeLongs(array, offset, length, new File(filename.toString())); } /** Stores an array to a file given by a {@link File} object.
/** Stores an array to a file given by a pathname. * * @param array an array whose elements will be written to {@code filename}. * @param filename a filename. */ public static void storeLongs(final long array[], final CharSequence filename) throws IOException { storeLongs(array, new File(filename.toString())); } /** Loads elements from a given data input, storing them in a given big-array fragment.
/** Stores a big-array fragment to a file given by a pathname. * * @param array a big array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param filename a filename. */ public static void storeLongs(final long array[][], final long offset, final long length, final CharSequence filename) throws IOException { storeLongs(array, offset, length, new File(filename.toString())); } /** Stores an array to a file given by a {@link File} object.
final Logger logger = LoggerFactory.getLogger(LongBigListSignedStringMap.class); final ProgressLogger pl = new ProgressLogger(logger); if (function != null) BinIO.storeLongs(sign(iterator, function, pl), signaturesName); else sign(iterator, signaturesName, pl); if (stringFile != null) inputStream.close();
valueFile.deleteOnExit(); BinIO.storeLongs(map.key, 0, map.size(), keyFile); BinIO.storeInts(map.value, 0, map.size(), valueFile);
valueFile.deleteOnExit(); BinIO.storeLongs(map.key, 0, map.size(), keyFile); BinIO.storeInts(map.value, 0, map.size(), valueFile);
ScatteredArcsASCIIGraph graph = new ScatteredArcsASCIIGraph(System.in, function, charset, n, jsapResult.userSpecified("symmetrize"), jsapResult.userSpecified("noLoops"), jsapResult.getInt("batchSize"), tempDir, pl); BVGraph.store(graph, basename, windowSize, maxRefCount, minIntervalLength, zetaK, flags, pl); if (function == null) BinIO.storeLongs(graph.ids, basename + IDS_EXTENSION);
BinIO.storeDoubles(centralities.harmonic, jsapResult.getString("harmonicFilename")); BinIO.storeDoubles(centralities.exponential, jsapResult.getString("exponentialFilename")); BinIO.storeLongs(centralities.reachable, jsapResult.getString("reachableFilename"));