Struct parity_db::ColumnOptions
source · [−]pub struct ColumnOptions {
pub preimage: bool,
pub uniform: bool,
pub ref_counted: bool,
pub compression: CompressionType,
pub compression_threshold: u32,
pub btree_index: bool,
}Fields
preimage: boolIndicates that the column value is the preimage of the key. This implies that a given value always has the same key. Enables some optimizations.
uniform: boolIndicates that the keys are at least 32 bytes and the first 32 bytes have uniform distribution. Allows for skipping additional key hashing.
ref_counted: boolUse reference counting for values.
compression: CompressionTypeCompression to use for this column.
compression_threshold: u32Minimal value size threshold to attempt compressing a value.
btree_index: boolColumn is using a btree indexing.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ColumnOptions
impl Send for ColumnOptions
impl Sync for ColumnOptions
impl Unpin for ColumnOptions
impl UnwindSafe for ColumnOptions
Blanket Implementations
Mutably borrows from an owned value. Read more