org.mapdb.volume / MappedFileVol

MappedFileVol

class MappedFileVol : ByteBufferVol

Created by jan on 2/29/16.



Types

MappedFileFactory class MappedFileFactory : VolumeFactory

Constructors

<init> MappedFileVol(file: File, readOnly: Boolean, fileLockWait: Long, sliceShift: Int, cleanerHackEnabled: Boolean, initSize: Long, preclearDisabled: Boolean)

Properties

FACTORY static val FACTORY: VolumeFactory

Functions

close fun close(): Unit
ensureAvailable fun ensureAvailable(offset: Long): Unit
fileLoad fun fileLoad(): Boolean
getFile fun getFile(): File
getFileLocked fun getFileLocked(): Boolean
isReadOnly fun isReadOnly(): Boolean
length fun length(): Long
sync fun sync(): Unit
truncate fun truncate(size: Long): Unit

Inherited Functions

clear open fun clear(startOffset: Long, endOffset: Long): Unit
copyTo open fun copyTo(inputOffset: Long, target: Volume, targetOffset: Long, size: Long): Unit
getByte fun getByte(offset: Long): Byte
getData open fun getData(offset: Long, src: ByteArray, srcPos: Int, srcSize: Int): Unit
getDataInput fun getDataInput(offset: Long, size: Int): ByteBuffer
getDataInputOverlap open fun getDataInputOverlap(offset: Long, size: Int): DataInput2
getInt fun getInt(offset: Long): Int
getLong fun getLong(offset: Long): Long
getPackedLong open fun getPackedLong(position: Long): Long
getSixLong open fun getSixLong(pos: Long): Long
getUnsignedByte open fun getUnsignedByte(offset: Long): Int
getUnsignedShort open fun getUnsignedShort(offset: Long): Int
isSliced open fun isSliced(): Boolean
putByte fun putByte(offset: Long, value: Byte): Unit
putData open fun putData(offset: Long, src: ByteArray, srcPos: Int, srcSize: Int): Unit
fun putData(offset: Long, buf: ByteBuffer): Unit
putDataOverlap open fun putDataOverlap(offset: Long, data: ByteArray, pos: Int, len: Int): Unit
putInt fun putInt(offset: Long, value: Int): Unit
putLong fun putLong(offset: Long, value: Long): Unit
putPackedLong open fun putPackedLong(pos: Long, value: Long): Int
putSixLong open fun putSixLong(pos: Long, value: Long): Unit
putUnsignedByte open fun putUnsignedByte(offset: Long, byt: Int): Unit
putUnsignedShort open fun putUnsignedShort(offset: Long, value: Int): Unit
sliceSize open fun sliceSize(): Int