[][src]Struct rocks::table_properties::UserCollectedProperties

#[repr(C)]pub struct UserCollectedProperties { /* fields omitted */ }

Other than basic table properties, each table may also have the user collected properties.

The value of the user-collected properties are encoded as raw bytes -- users have to interprete these values by themselves.

Rust: wraps raw c pointer, and exposes as a {String => Vec<u8>} map

Common properties:

  • rocksdb.block.based.table.index.type
  • rocksdb.block.based.table.prefix.filtering
  • rocksdb.block.based.table.whole.key.filtering
  • rocksdb.deleted.keys
  • rocksdb.merge.operands

Implementations

impl UserCollectedProperties[src]

pub fn insert(&mut self, key: &str, value: &[u8])[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn iter(&self) -> UserCollectedPropertiesIter<'_>

Notable traits for UserCollectedPropertiesIter<'a>

impl<'a> Iterator for UserCollectedPropertiesIter<'a> type Item = (&'a str, &'a [u8]);
[src]

Trait Implementations

impl Debug for UserCollectedProperties[src]

impl<'a> Index<&'a str> for UserCollectedProperties[src]

type Output = [u8]

The returned type after indexing.

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, 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.