[][src]Struct rocksdb::ReadOptions

pub struct ReadOptions { /* fields omitted */ }

Methods

impl ReadOptions[src]

pub fn set_iterate_upper_bound<K: AsRef<[u8]>>(&mut self, key: K)[src]

Set the upper bound for an iterator, and the upper bound itself is not included on the iteration result.

pub fn set_prefix_same_as_start(&mut self, v: bool)[src]

pub fn set_total_order_seek(&mut self, v: bool)[src]

pub fn set_readahead_size(&mut self, v: usize)[src]

If non-zero, an iterator will create a new table reader which performs reads of the given size. Using a large size (> 2MB) can improve the performance of forward iteration on spinning disks. Default: 0

use rocksdb::{ReadOptions};

let mut opts = ReadOptions::default();
opts.set_readahead_size(4_194_304); // 4mb

Trait Implementations

impl Drop for ReadOptions[src]

impl Default for ReadOptions[src]

Auto Trait Implementations

impl !Send for ReadOptions

impl !Sync for ReadOptions

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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