Volume { abstract public void putLong(final long offset, final long value);  abstract void ensureAvailable(final long offset); abstract void putLong(final long offset, final long value); abstract void putInt(long offset, int value); abstract void putByte(final long offset, final byte value); abstract void putData(final long offset, final byte[] value, int size); abstract void putData(final long offset, final ByteBuffer buf); abstract long getLong(final long offset); abstract int getInt(long offset); abstract byte getByte(final long offset); abstract DataInput2 getDataInput(final long offset, final int size); abstract void close(); abstract void sync(); abstract boolean isEmpty(); abstract void deleteFile(); abstract boolean isSliced(); final void putUnsignedShort(final long offset, final int value); final int getUnsignedShort(long offset); int getUnsignedByte(long offset); void putUnsignedByte(long offset, int b); abstract File getFile(); static Volume volumeForFile(File f, boolean useRandomAccessFile, boolean readOnly); static Factory fileFactory(final boolean readOnly, final boolean RAF, final File indexFile); static Factory fileFactory(final boolean readOnly,
                                      final boolean RAF,
                                      final File indexFile,
                                      final File physFile,
                                      final File transLogFile); static Factory memoryFactory(final boolean useDirectBuffer); static final int BUF_SIZE; static final int INITIAL_SIZE; }
@Test public void testPutLong() throws Exception { b.putLong(1000, 111L); assertEquals(111L, b.getLong(1000)); }