public class MappedFileVolSingle
extends ByteBufferVolSingle
Created by jan on 2/29/16.
Modifier and Type | Field and Description |
---|---|
static VolumeFactory |
FACTORY |
static VolumeFactory |
FACTORY_WITH_CLEANER_HACK |
java.io.File |
file |
java.nio.channels.FileLock |
fileLock |
java.nio.channels.FileChannel.MapMode |
mapMode |
java.io.RandomAccessFile |
raf |
buffer, cleanerHackEnabled, maxSize, readOnly
LOG, UNSAFE_VOL_FACTORY, closed
Constructor and Description |
---|
MappedFileVolSingle() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
fileLoad() |
java.io.File |
getFile() |
boolean |
getFileLocked() |
boolean |
isReadOnly() |
long |
length() |
void |
sync() |
void |
truncate() |
clear, copyTo, ensureAvailable, getByte, getData, getDataInput, getDataInputOverlap, getInt, getLong, isSliced, putByte, putData, putData, putDataOverlap, putInt, putLong, sliceSize
assertZeroes, clear, clearOverlap, close, copyFrom, copyTo, copyTo, copyTo, deleteFile, ensureAvailable, fileLoad, finalize, getByte, getData, getDataInput, getDataInputOverlap, getFile, getFileLocked, getInt, getLong, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, hash, isClosed, isReadOnly, isSliced, length, putByte, putData, putData, putDataOverlap, putInt, putLong, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, sliceSize, sync, truncate
public static VolumeFactory FACTORY
public static VolumeFactory FACTORY_WITH_CLEANER_HACK
public java.io.File file
public java.nio.channels.FileChannel.MapMode mapMode
public java.io.RandomAccessFile raf
public java.nio.channels.FileLock fileLock