Skip to main content

Crate turbo_persistence

Crate turbo_persistence 

Source

Re-exports§

pub use meta_file::MetaEntryFlags;
pub use static_sorted_file::BlockCache;
pub use static_sorted_file::BlockWeighter;
pub use static_sorted_file::SstLookupResult;
pub use static_sorted_file::StaticSortedFile;
pub use static_sorted_file::StaticSortedFileMetaData;

Modules§

meta_file
mmap_helper
static_sorted_file

Structs§

ArcBytes
An owned byte slice backed by either an Arc<[u8]> or a memory-mapped file.
CompactConfig
Configuration for the compaction algorithm.
DbConfig
Database-wide configuration with per-family settings.
FamilyConfig
Configuration for a single family to describe how the data is stored.
MetaFileEntryInfo
MetaFileInfo
SerialScheduler
StreamingSstWriter
A streaming SST file writer that writes blocks to disk incrementally.
TurboPersistence
TurboPersistence is a persistent key-value store. It is limited to a single writer at a time using a single write batch. It allows for concurrent reads.
WriteBatch
A write batch.

Enums§

EntryValue
Reference to a value
FamilyKind
ValueBuffer

Constants§

BLOCK_HEADER_SIZE
Size of the per-block header on disk: 4 bytes uncompressed_size + 4 bytes CRC32 checksum.

Traits§

Entry
Trait for entries from that SST files can be created
KeyBase
A trait for keys that can be used for hashing.
ParallelScheduler
QueryKey
A trait for keys that can be used to query the database. They need to allow hashing and comparison with a byte slice (total order).
StoreKey
A trait for keys that can be stored in the database. They need to allow hashing and comparison.

Functions§

checksum_block
Computes a CRC32 checksum of a byte slice.
hash_key
Hashes a key with a fast, deterministic hash function.
write_static_stored_file
Writes an SST file from a pre-sorted slice of entries.