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 StoreReadWrite
public long getChunkSize()
StoreReadWrite
getChunkSize
in interface StoreReadWrite
public long getMmapCloseTimeout()
getMmapCloseTimeout
in interface StoreReadWrite
public void create() throws java.io.IOException
create
in interface StoreReadWrite
java.io.IOException
public void init() throws java.io.IOException
init
in interface StoreReadWrite
java.io.IOException
public InStore openRead(long address, int size)
openRead
in interface StoreReadWrite
public OutStore openWrite(long address, int size)
openWrite
in interface StoreReadWrite
public void fsync()
fsync
in interface StoreReadWrite
public void close()
close
in interface StoreReadWrite
public java.lang.String toString()
toString
in class java.lang.Object