[][src]Struct rocks::db::ColumnFamily

pub struct ColumnFamily { /* fields omitted */ }

An opened column family, owned for RAII style management

Implementations

impl ColumnFamily[src]

pub fn put(
    &self,
    options: &WriteOptions,
    key: &[u8],
    value: &[u8]
) -> Result<()>
[src]

pub fn delete(&self, options: &WriteOptions, key: &[u8]) -> Result<()>[src]

pub fn single_delete(&self, options: &WriteOptions, key: &[u8]) -> Result<()>[src]

pub fn delete_range(
    &self,
    options: &WriteOptions,
    begin_key: &[u8],
    end_key: &[u8]
) -> Result<()>
[src]

pub fn merge(
    &self,
    options: &WriteOptions,
    key: &[u8],
    val: &[u8]
) -> Result<()>
[src]

pub fn get(&self, options: &ReadOptions, key: &[u8]) -> Result<PinnableSlice>[src]

pub fn multi_get(
    &self,
    options: &ReadOptions,
    keys: &[&[u8]]
) -> Vec<Result<PinnableSlice>>
[src]

pub fn key_may_exist(&self, options: &ReadOptions, key: &[u8]) -> bool[src]

If the key definitely does not exist in the database, then this method returns false, else true. If the caller wants to obtain value when the key is found in memory, a bool for 'value_found' must be passed. 'value_found' will be true on return if value has been set properly.

This check is potentially lighter-weight than invoking DB::Get(). One way to make this lighter weight is to avoid doing any IOs.

pub fn key_may_get(
    &self,
    options: &ReadOptions,
    key: &[u8]
) -> (bool, Option<Vec<u8>>)
[src]

pub fn new_iterator(&self, options: &ReadOptions) -> Iterator

Important traits for Iterator<'a>

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

pub fn get_property(&self, property: &str) -> Option<String>[src]

pub fn get_int_property(&self, property: &str) -> Option<u64>[src]

pub fn compact_range<R: AsCompactRange>(
    &self,
    options: &CompactRangeOptions,
    range: R
) -> Result<()>
[src]

pub fn set_options<T, H>(&self, new_options: H) -> Result<()> where
    T: AsRef<str>,
    H: IntoIterator<Item = (T, T)>, 
[src]

pub fn get_approximate_sizes(&self, ranges: &[Range<&[u8]>]) -> Vec<u64>[src]

pub fn get_approximate_memtable_stats(&self, range: Range<&[u8]>) -> (u64, u64)[src]

pub fn ingest_external_file<P: AsRef<Path>, T: IntoIterator<Item = P>>(
    &self,
    external_files: T,
    options: &IngestExternalFileOptions
) -> Result<()>
[src]

pub fn metadata(&self) -> ColumnFamilyMetaData[src]

Obtains the meta data of the current column family of the DB.

Methods from Deref<Target = ColumnFamilyHandle>

pub fn name(&self) -> &str[src]

Returns the name of the column family associated with the current handle.

pub fn id(&self) -> u32[src]

Returns the ID of the column family associated with the current handle.

Trait Implementations

impl AsRef<ColumnFamilyHandle> for ColumnFamily[src]

impl Debug for ColumnFamily[src]

impl Deref for ColumnFamily[src]

type Target = ColumnFamilyHandle

The resulting type after dereferencing.

impl Drop for ColumnFamily[src]

impl Send for ColumnFamily[src]

impl Sync for ColumnFamily[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, 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.