public class ResizeableMappedFile extends java.lang.Object implements Forceable
Constructor and Description |
---|
ResizeableMappedFile(java.nio.file.Path file,
int initialSize,
PagedFileStorage.StorageLockContext lockContext,
int pageSize,
boolean valuesAreBufferAligned) |
ResizeableMappedFile(java.nio.file.Path file,
int initialSize,
PagedFileStorage.StorageLockContext lockContext,
int pageSize,
boolean valuesAreBufferAligned,
boolean nativeBytesOrder) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
force() |
byte |
get(long index) |
void |
get(long index,
byte[] dst,
int offset,
int length) |
int |
getInt(long index) |
long |
getLong(long index) |
PagedFileStorage |
getPagedFileStorage() |
short |
getShort(long index) |
boolean |
isDirty() |
long |
length() |
void |
put(long index,
byte value) |
void |
put(long index,
byte[] src,
int offset,
int length) |
void |
putInt(long index,
int value) |
void |
putLong(long index,
long value) |
void |
putShort(long index,
short value) |
void |
setRoundFactor(int roundFactor) |
public ResizeableMappedFile(java.nio.file.Path file, int initialSize, PagedFileStorage.StorageLockContext lockContext, int pageSize, boolean valuesAreBufferAligned)
public ResizeableMappedFile(java.nio.file.Path file, int initialSize, PagedFileStorage.StorageLockContext lockContext, int pageSize, boolean valuesAreBufferAligned, boolean nativeBytesOrder)
public long length()
public void setRoundFactor(int roundFactor)
public int getInt(long index)
public void putInt(long index, int value)
public short getShort(long index)
public void putShort(long index, short value)
public long getLong(long index)
public void putLong(long index, long value)
public byte get(long index)
public void put(long index, byte value)
public void get(long index, byte[] dst, int offset, int length)
public void put(long index, byte[] src, int offset, int length)
public void close()
public PagedFileStorage getPagedFileStorage()