@Override public void writeRaw(byte[] bytes, int offset, int length) throws IOException { buf.writeRaw(bytes, offset, length); }
/** * Write a transaction to the stream. The serialization format is: * <ul> * <li>the opcode (byte)</li> * <li>the transaction id (long)</li> * <li>the actual Writables for the transaction</li> * </ul> * */ @Override public void writeRaw(byte[] bytes, int offset, int length) throws IOException { doubleBuf.writeRaw(bytes, offset, length); }
/** * Write a transaction to the stream. The serialization format is: * <ul> * <li>the opcode (byte)</li> * <li>the transaction id (long)</li> * <li>the actual Writables for the transaction</li> * </ul> * */ @Override public void writeRaw(byte[] bytes, int offset, int length) throws IOException { doubleBuf.writeRaw(bytes, offset, length); }
/** * Write a transaction to the stream. The serialization format is: * <ul> * <li>the opcode (byte)</li> * <li>the transaction id (long)</li> * <li>the actual Writables for the transaction</li> * </ul> * */ @Override public void writeRaw(byte[] bytes, int offset, int length) throws IOException { doubleBuf.writeRaw(bytes, offset, length); }
@Override public void writeRaw(byte[] bytes, int offset, int length) throws IOException { buf.writeRaw(bytes, offset, length); }
@Override public void writeRaw(byte[] bytes, int offset, int length) throws IOException { buf.writeRaw(bytes, offset, length); }
@Test public void shouldFailToCloseWhenUnflushed() throws IOException { EditsDoubleBuffer buf = new EditsDoubleBuffer(1024); buf.writeRaw(new byte[1], 0, 1); try { buf.close(); fail("Did not fail to close with unflushed data"); } catch (IOException ioe) { if (!ioe.toString().contains("still to be flushed")) { throw ioe; } } } }