public class MappedFileVol
extends ByteBufferVol
Created by jan on 2/29/16.
| Modifier and Type | Class and Description |
|---|---|
static class |
MappedFileVol.MappedFileFactory |
| Modifier and Type | Field and Description |
|---|---|
static VolumeFactory |
FACTORY |
java.io.File |
file |
java.nio.channels.FileChannel |
fileChannel |
java.nio.channels.FileLock |
fileLock |
java.nio.channels.FileChannel.MapMode |
mapMode |
boolean |
preclearDisabled |
java.io.RandomAccessFile |
raf |
cleanerHackEnabled, growLock, readOnly, sliceShift, sliceSize, sliceSizeModMask, slicesLOG, UNSAFE_VOL_FACTORY, closed| Constructor and Description |
|---|
MappedFileVol() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
ensureAvailable() |
boolean |
fileLoad() |
java.io.File |
getFile() |
boolean |
getFileLocked() |
boolean |
isReadOnly() |
long |
length() |
void |
sync() |
void |
truncate() |
clear, copyTo, getByte, getData, getDataInput, getDataInputOverlap, getInt, getLong, getPackedLong, getSixLong, getSlice, getUnsignedByte, getUnsignedShort, isSliced, putByte, putData, putData, putDataOverlap, putInt, putLong, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, sliceSize, toByte, toByte, unmapassertZeroes, 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, truncatepublic static VolumeFactory FACTORY
public java.io.File file
public java.nio.channels.FileChannel fileChannel
public java.nio.channels.FileChannel.MapMode mapMode
public java.io.RandomAccessFile raf
public java.nio.channels.FileLock fileLock
public boolean preclearDisabled
public void ensureAvailable()
public void close()
public void sync()
public long length()
public boolean isReadOnly()
public java.io.File getFile()
public boolean getFileLocked()
public void truncate()
public boolean fileLoad()