[][src]Enum rocks::options::CompressionType

#[repr(C)]pub enum CompressionType {
    NoCompression,
    SnappyCompression,
    ZlibCompression,
    BZip2Compression,
    LZ4Compression,
    LZ4HCCompression,
    XpressCompression,
    ZSTD,
    ZSTDNotFinalCompression,
    DisableCompressionOption,
}

DB contents are stored in a set of blocks, each of which holds a sequence of key,value pairs. Each block may be compressed before being stored in a file. The following enum describes which compression method (if any) is used to compress a block.

Variants

NoCompression

NOTE: do not change the values of existing entries, as these are part of the persistent format on disk.

SnappyCompression
ZlibCompression
BZip2Compression
LZ4Compression
LZ4HCCompression
XpressCompression
ZSTD
ZSTDNotFinalCompression

Only use kZSTDNotFinalCompression if you have to use ZSTD lib older than 0.8.0 or consider a possibility of downgrading the service or copying the database files to another service running with an older version of RocksDB that doesn't have kZSTD. Otherwise, you should use kZSTD. We will eventually remove the option from the public API.

DisableCompressionOption

kDisableCompressionOption is used to disable some compression options.

Trait Implementations

impl Clone for CompressionType[src]

impl Copy for CompressionType[src]

impl Debug for CompressionType[src]

impl Eq for CompressionType[src]

impl Hash for CompressionType[src]

impl Ord for CompressionType[src]

impl PartialEq<CompressionType> for CompressionType[src]

impl PartialOrd<CompressionType> for CompressionType[src]

impl StructuralEq for CompressionType[src]

impl StructuralPartialEq for CompressionType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.