Struct engine_rocks::engine::RocksEngine[][src]

pub struct RocksEngine {
    db: Arc<DB>,
    shared_block_cache: bool,
}

Fields

db: Arc<DB>shared_block_cache: bool

Implementations

impl RocksEngine[src]

pub fn from_db(db: Arc<DB>) -> Self[src]

pub fn from_ref(db: &Arc<DB>) -> &Self[src]

pub fn as_inner(&self) -> &Arc<DB>[src]

pub fn get_sync_db(&self) -> Arc<DB>[src]

pub fn exists(path: &str) -> bool[src]

pub fn set_shared_block_cache(&mut self, enable: bool)[src]

impl RocksEngine[src]

fn is_titan(&self) -> bool[src]

fn delete_all_in_range_cf_by_ingest(
    &self,
    cf: &str,
    sst_path: String,
    ranges: &[Range<'_>]
) -> Result<()>
[src]

fn delete_all_in_range_cf_by_key(
    &self,
    cf: &str,
    range: &Range<'_>
) -> Result<()>
[src]

Trait Implementations

impl CFNamesExt for RocksEngine[src]

impl CFOptionsExt for RocksEngine[src]

impl Clone for RocksEngine[src]

impl CompactExt for RocksEngine[src]

type CompactedEvent = RocksCompactedEvent

impl DBOptionsExt for RocksEngine[src]

impl Debug for RocksEngine[src]

impl ImportExt for RocksEngine[src]

type IngestExternalFileOptions = RocksIngestExternalFileOptions

impl Iterable for RocksEngine[src]

type Iterator = RocksEngineIterator

impl KvEngine for RocksEngine[src]

type Snapshot = RocksSnapshot

A consistent read-only snapshot of the database

impl MiscExt for RocksEngine[src]

impl MvccPropertiesExt for RocksEngine[src]

impl Peekable for RocksEngine[src]

type DBVector = RocksDBVector

The byte-vector type through which the database returns read values.

impl PerfContextExt for RocksEngine[src]

type PerfContext = RocksPerfContext

impl RaftEngine for RocksEngine[src]

type LogBatch = RocksWriteBatch

impl RangePropertiesExt for RocksEngine[src]

impl SstExt for RocksEngine[src]

impl SstWriterBuilder<RocksEngine> for RocksSstWriterBuilder[src]

impl SyncMutable for RocksEngine[src]

impl TablePropertiesExt for RocksEngine[src]

impl TtlPropertiesExt for RocksEngine[src]

impl WriteBatch<RocksEngine> for RocksWriteBatch[src]

impl WriteBatch<RocksEngine> for RocksWriteBatchVec[src]

impl WriteBatchExt for RocksEngine[src]

type WriteBatch = RocksWriteBatch

type WriteBatchVec = RocksWriteBatchVec

WriteBatchVec is used for multi_batch_write of RocksEngine and other Engine could also implement another kind of WriteBatch according to their needs. Read more

Auto Trait Implementations

impl RefUnwindSafe for RocksEngine

impl Send for RocksEngine

impl Sync for RocksEngine

impl Unpin for RocksEngine

impl UnwindSafe for RocksEngine

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> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]