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.

Close pool (closes open file).

Delete pool (deletes file).

Gets pool (file) size in bytes.

Fetch a top level document from a block offset, reading the header.

Fetch a top level document from a block address, ignoring the header.

Delete a block.

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.

Trait Implementations

Formats the value using the given formatter. Read more

Allow pretty-printing of pool.

Prints a pool with all of its allocated blocks, for debugging purposes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.