pub struct ColumnOptions {
pub preimage: bool,
pub uniform: bool,
pub ref_counted: bool,
pub compression: CompressionType,
pub btree_index: bool,
pub multitree: bool,
pub append_only: bool,
pub allow_direct_node_access: bool,
}
Expand description
Database column configuration.
Fields§
§preimage: bool
Indicates 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: bool
Indicates that the keys are at least 32 bytes and the first 32 bytes have uniform distribution. Allows for skipping additional key hashing.
ref_counted: bool
Use reference counting for values. Reference operations are allowed for a column. The value is deleted when the counter reaches zero.
compression: CompressionType
Compression to use for this column.
btree_index: bool
Column is configured to use Btree storage. Btree columns allow for ordered key iteration and key retrieval, but are significantly less performant and require more disk space.
multitree: bool
Column supports Multitree operations. This allows committing and querying of tree structures.
append_only: bool
Column is append-only. Delete operations are ignored.
allow_direct_node_access: bool
Allow Multitree root and child nodes to be accessed directly without using TreeReader. Client code must ensure this is safe.
Implementations§
Trait Implementations§
Source§impl Clone for ColumnOptions
impl Clone for ColumnOptions
Source§fn clone(&self) -> ColumnOptions
fn clone(&self) -> ColumnOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more