Struct cudb::mmapv1::Pool [−][src]
pub struct Pool { /* fields omitted */ }
Expand description
A linear collection of contiguous blocks.
Implements random-access operations: insertion, update (including resizing/reallocation), (soft) deletion. Also implements a linear scanning. Currently uses a very simple (bad) allocation scheme.
Implementations
Create a new memory pool from a file, creating the file if necessary.
Save indices to file.
Fetch a top level document from a block offset, reading the header.
Fetch a top level document from a block address, ignoring the header.
Update document (including_header), return new document. Note that this may require resizing, which may update the document.
Write a new document (including header), and return the TopLevelDocument.
Linearly scan and retrieve all documents from the pool.