@Override public Object call() throws Exception { igfs.append(path(path), create); return false; } }, IgfsException.class, null);
/** * Appent text to the file. * * @param path File path to create. * @param create Create file if it doesn't exist yet. * @param text Text to append to file. * @return Content of this file. * @throws IgniteCheckedException In case of error. */ private String append(String path, boolean create, String text) throws Exception { try (IgfsOutputStream out = igfs.append(path(path), create)) { IOUtils.write(text, out, UTF_8); } assertNotNull(igfs.info(path(path))); return read(path); }
IgniteFileSystem igfs = grid(igfsIdx).fileSystem("igfs"); try (IgfsOutputStream out = igfs.append(path, true)) { byte[] data = new byte[chunkSize];
try (IgfsOutputStream out = igfs.append(path, true)) { for (int i = 0; i < 8; i++) { Arrays.fill(chunk, (byte)cnt);
os = igfs.append(path, chunkSize, false, null);
try (IgfsOutputStream out = fs1.append(path, false)) {
assertEquals(0, m.filesOpenedForWrite()); IgfsOutputStream out = fs.append(new IgfsPath("/primary/dir1/file1"), false);