/** {@inheritDoc} */ @Override public OutputStream append(IgfsPath path, int bufSize, boolean create, @Nullable Map<String, String> props) throws IgniteException { return igfs.append(path, bufSize, create, props); }
@Override public HadoopIgfsStreamDelegate apply() { IgfsOutputStream stream = igfs.append(path, bufSize, create, props); return new HadoopIgfsStreamDelegate(HadoopIgfsInProc.this, stream); } });
/** {@inheritDoc} */ @Override public OutputStream openOutputStream(String path, boolean append) throws IOException { IgfsPath igfsPath = new IgfsPath(path); final IgfsOutputStream igfsOutputStream; if (append) igfsOutputStream = igfsEx.append(igfsPath, true/*create*/); else igfsOutputStream = igfsEx.create(igfsPath, true/*overwrite*/); return igfsOutputStream; }
try (PrintWriter pw = new PrintWriter(igfs.append(inFile, false))) { pw.println("hello2 world2"); pw.println("world3 hello3");
long streamId = registerResource(ses, igfs.append(
/** {@inheritDoc} */ @Override public OutputStream append(IgfsPath path, int bufSize, boolean create, @Nullable Map<String, String> props) throws IgniteException { return igfs.append(path, bufSize, create, props); }
long streamId = registerResource(ses, igfs.append(