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, setRoundFactorpublic AppendableStorageBackedByResizableMappedFile(java.nio.file.Path file,
int initialSize,
PagedFileStorage.StorageLockContext lockContext,
int pageSize,
boolean valuesAreBufferAligned)
public void force()
force in interface Forceableforce in class ResizeableMappedFilepublic void close()
close in class ResizeableMappedFilepublic <Data> Data read(int addr,
KeyDescriptor<Data> descriptor)
throws java.io.IOException
java.io.IOExceptionpublic <Data> boolean processAll(Processor<? super Data> processor, KeyDescriptor<Data> descriptor) throws java.io.IOException
java.io.IOExceptionpublic int getCurrentLength()
public <Data> int append(Data value,
KeyDescriptor<Data> descriptor)
throws java.io.IOException
java.io.IOException