Struct photondb::photon::Table

source ·
pub struct Table(_);
Expand description

A reference to a latch-free, log-structured table that stores sorted key-value entries.

This is the same as raw::Table with the Photon environment.

Implementations§

Opens a table in the path with the given options.

This is the same as raw::Table::open with the Photon environment.

Closes the table if this is the only reference to it.

This is the same as raw::Table::close with the Photon environment.

Methods from Deref<Target = Table<Photon>>§

Returns a Guard that pins the table for user operations.

Gets the value corresponding to the key.

Puts a key-value entry to the table.

Deletes the entry corresponding to the key from the table.

Returns the statistics of the table.

Returns the minimal LSN that the table can safely read with.

The table guarantees that entries visible to the returned LSN are retained for reads.

Updates the minimal LSN that the table can safely read with.

The safe LSN must be increasing, so updating it with a smaller value has no effect. When the safe LSN is advanced, the table will gradually drop entries that are not visible to the LSN anymore.

Flush all write buffer data.

Wait all pending reclaiming to finish.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.