/** * Flush remainder. * * @throws IOException If failed. */ private void flushRemainder() throws IOException { try { if (remainder != null) { remainder = igfsCtx.data().storeDataBlocks(fileInfo, length() + space, null, 0, ByteBuffer.wrap(remainder, 0, remainderDataLen), true, streamRange, batch); remainder = null; remainderDataLen = 0; } } catch (IgniteCheckedException e) { throw new IOException("Failed to flush data (remainder) [path=" + path + ", space=" + space + ']', e); } }
remainder = igfsCtx.data().storeDataBlocks(fileInfo, length() + space, remainder, remainderDataLen, (ByteBuffer)data, false, streamRange, batch); remainder = igfsCtx.data().storeDataBlocks(fileInfo, length() + space, remainder, remainderDataLen, (DataInput)data, writeLen, false, streamRange, batch);
@Override public Object call() throws Exception { IgfsFileAffinityRange range = new IgfsFileAffinityRange(); mgr.storeDataBlocks(reserved, reserved.length(), null, 0, ByteBuffer.wrap(data), false, range, null); return null; } }, IgfsException.class, msg);
byte[] left = mgr.storeDataBlocks(info, info.length(), remainder, remainder.length, ByteBuffer.wrap(data), false, range, null); byte[] left2 = mgr.storeDataBlocks(info, info.length(), left, left.length, ByteBuffer.wrap(remainder2), false, range, null);
Arrays.fill(data, (byte)(j / 4)); byte[] left = mgr.storeDataBlocks(info, (j + 1) * chunkSize, null, 0, ByteBuffer.wrap(data), true, range, null);
byte[] remainder = mgr.storeDataBlocks(info, info.length(), null, 0, ByteBuffer.wrap(data), true, range, null);
/** * Flush remainder. * * @throws IOException If failed. */ private void flushRemainder() throws IOException { try { if (remainder != null) { remainder = igfsCtx.data().storeDataBlocks(fileInfo, length() + space, null, 0, ByteBuffer.wrap(remainder, 0, remainderDataLen), true, streamRange, batch); remainder = null; remainderDataLen = 0; } } catch (IgniteCheckedException e) { throw new IOException("Failed to flush data (remainder) [path=" + path + ", space=" + space + ']', e); } }
remainder = igfsCtx.data().storeDataBlocks(fileInfo, length() + space, remainder, remainderDataLen, (ByteBuffer)data, false, streamRange, batch); remainder = igfsCtx.data().storeDataBlocks(fileInfo, length() + space, remainder, remainderDataLen, (DataInput)data, writeLen, false, streamRange, batch);