Interface SoftBPlusTree.NodeStore
- Enclosing class:
SoftBPlusTree<V>
public static interface SoftBPlusTree.NodeStore
Storage backend for serialized nodes. Provides raw I/O operations;
space allocation and free block management are handled by the tree.
-
Method Summary
Modifier and TypeMethodDescriptionread(long offset, int length) Readslengthbytes fromoffset.voidtruncate(long size) Truncates the backing storage to the given size.voidwrite(ByteBuffer data, long offset) Writesdata(from position to limit) at the given offset.
-
Method Details
-
write
Writesdata(from position to limit) at the given offset.- Throws:
IOException
-
read
Readslengthbytes fromoffset.- Throws:
IOException
-
truncate
Truncates the backing storage to the given size.- Throws:
IOException
-