@Test public void read_beyond_end_mapped_long(){ try{ Volume v = new Volume.MappedFileVol(Utils.tempDbFile(), false); v.getLong(1000000); fail(); }catch(IOError e){ assertTrue(e.getCause() instanceof EOFException); } }
abstract public long getLong(final long offset);
Volume { abstract public long getLong(final long offset); }
Volume { abstract public long getLong(final long offset);  }
Volume { abstract public long getLong(final long offset);  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); }
Volume { abstract public long getLong(final long offset);  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; }