org.mapdb
Class Volume.MappedFileVol
java.lang.Object
org.mapdb.Volume
org.mapdb.Volume.ByteBufferVol
org.mapdb.Volume.MappedFileVol
- Enclosing class:
- Volume
public static final class Volume.MappedFileVol
- extends Volume.ByteBufferVol
|
Constructor Summary |
Volume.MappedFileVol(File file,
boolean readOnly,
long sizeLimit,
int chunkShift,
int sizeIncrement)
|
| Methods inherited from class org.mapdb.Volume.ByteBufferVol |
getByte, getDataInput, getInt, getLong, isEmpty, isSliced, putByte, putData, putData, putInt, putLong, tryAvailable, unmap |
| Methods inherited from class org.mapdb.Volume |
ensureAvailable, fileFactory, fileFactory, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, memoryFactory, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, volumeForFile, volumeTransfer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected final File file
fileChannel
protected final FileChannel fileChannel
mapMode
protected final FileChannel.MapMode mapMode
raf
protected final RandomAccessFile raf
Volume.MappedFileVol
public Volume.MappedFileVol(File file,
boolean readOnly,
long sizeLimit,
int chunkShift,
int sizeIncrement)
close
public void close()
- Specified by:
close in class Volume
sync
public void sync()
- Specified by:
sync in class Volume
makeNewBuffer
protected ByteBuffer makeNewBuffer(long offset)
- Specified by:
makeNewBuffer in class Volume.ByteBufferVol
deleteFile
public void deleteFile()
- Specified by:
deleteFile in class Volume
getFile
public File getFile()
- Description copied from class:
Volume
- returns underlying file if it exists
- Specified by:
getFile in class Volume
truncate
public void truncate(long size)
- Specified by:
truncate in class Volume
Copyright © 2014. All Rights Reserved.