Struct tantivy::directory::MmapDirectory[][src]

pub struct MmapDirectory { /* fields omitted */ }

Directory storing data in files, read via mmap.

The Mmap object are cached to limit the system calls.

Methods

impl MmapDirectory
[src]

Creates a new MmapDirectory in a temporary directory.

This is mostly useful to test the MmapDirectory itself. For your unit tests, prefer the RAMDirectory.

Opens a MmapDirectory in a directory.

Returns an error if the directory_path does not exist or if it is not a directory.

Returns some statistical information about the Mmap cache.

The MmapDirectory embeds a MmapDirectory to avoid multiplying the mmap system calls.

Trait Implementations

impl Clone for MmapDirectory
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MmapDirectory
[src]

Formats the value using the given formatter. Read more

impl Directory for MmapDirectory
[src]

Opens a virtual file for read. Read more

Opens a writer for the virtual file associated with a Path. Read more

Any entry associated to the path in the mmap will be removed before the file is deleted.

Returns true iff the file exists

Reads the full content file that has been written using atomic_write. Read more

Atomically replace the content of a file with data. Read more

Auto Trait Implementations