public class AppendableStorageBackedByResizableMappedFile extends ResizeableMappedFile
Constructor and Description |
---|
AppendableStorageBackedByResizableMappedFile(java.nio.file.Path file,
int initialSize,
PagedFileStorage.StorageLockContext lockContext,
int pageSize,
boolean valuesAreBufferAligned) |
Modifier and Type | Method and Description |
---|---|
<Data> int |
append(Data value,
KeyDescriptor<Data> descriptor) |
void |
close() |
void |
force() |
int |
getCurrentLength() |
<Data> boolean |
processAll(Processor<? super Data> processor,
KeyDescriptor<Data> descriptor) |
<Data> Data |
read(int addr,
KeyDescriptor<Data> descriptor) |
get, get, getInt, getLong, getPagedFileStorage, getShort, isDirty, length, put, put, putInt, putLong, putShort, setRoundFactor
public AppendableStorageBackedByResizableMappedFile(java.nio.file.Path file, int initialSize, PagedFileStorage.StorageLockContext lockContext, int pageSize, boolean valuesAreBufferAligned)
public void force()
force
in interface Forceable
force
in class ResizeableMappedFile
public void close()
close
in class ResizeableMappedFile
public <Data> Data read(int addr, KeyDescriptor<Data> descriptor) throws java.io.IOException
java.io.IOException
public <Data> boolean processAll(Processor<? super Data> processor, KeyDescriptor<Data> descriptor) throws java.io.IOException
java.io.IOException
public int getCurrentLength()
public <Data> int append(Data value, KeyDescriptor<Data> descriptor) throws java.io.IOException
java.io.IOException