public class StoreReadWriteMmapNio extends java.lang.Object implements StoreReadWrite
FILE_SIZE_INCREMENT| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
create()
Creates the store.
|
void |
fsync() |
long |
getChunkSize()
Returns the alignment size for mmaps.
|
long |
getFileSize()
Returns the file size.
|
long |
getMmapCloseTimeout() |
void |
init() |
InStore |
openRead(long address,
int size)
Opens the underlying file to the database.
|
OutStore |
openWrite(long address,
int size)
Opens the underlying file to the database.
|
java.lang.String |
toString() |
public long getFileSize()
getFileSize in interface StoreReadWritepublic long getChunkSize()
StoreReadWritegetChunkSize in interface StoreReadWritepublic long getMmapCloseTimeout()
getMmapCloseTimeout in interface StoreReadWritepublic void create()
throws java.io.IOException
create in interface StoreReadWritejava.io.IOExceptionpublic void init()
throws java.io.IOException
init in interface StoreReadWritejava.io.IOExceptionpublic InStore openRead(long address, int size)
openRead in interface StoreReadWritepublic OutStore openWrite(long address, int size)
openWrite in interface StoreReadWritepublic void fsync()
fsync in interface StoreReadWritepublic void close()
close in interface StoreReadWritepublic java.lang.String toString()
toString in class java.lang.Object