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]

[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.

[src]

Opens a MmapDirectory in a directory.

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

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MmapDirectory
[src]

[src]

Formats the value using the given formatter. Read more

impl Directory for MmapDirectory
[src]

[src]

Opens a virtual file for read. Read more

[src]

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

[src]

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

[src]

Returns true iff the file exists

[src]

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

[src]

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

Important traits for Box<R>
[src]

Clones the directory and boxes the clone