[][src]Trait rocks::write_batch::WriteBatchHandler

pub trait WriteBatchHandler {
    pub fn put_cf(&mut self, column_family_id: u32, key: &[u8], value: &[u8]) { ... }
pub fn delete_cf(&mut self, column_family_id: u32, key: &[u8]) { ... }
pub fn single_delete_cf(&mut self, column_family_id: u32, key: &[u8]) { ... }
pub fn delete_range_cf(
        &mut self,
        column_family_id: u32,
        begin_key: &[u8],
        end_key: &[u8]
    ) { ... }
pub fn merge_cf(&mut self, column_family_id: u32, key: &[u8], value: &[u8]) { ... }
pub fn log_data(&mut self, blob: &[u8]) { ... }
pub fn mark_begin_prepare(&mut self) { ... }
pub fn mark_end_prepare(&mut self, xid: &[u8]) { ... }
pub fn mark_rollback(&mut self, xid: &[u8]) { ... }
pub fn mark_commit(&mut self, xid: &[u8]) { ... }
pub fn will_continue(&mut self) -> bool { ... } }

Support for iterating over the contents of a batch.

All handler functions in this class provide default implementations so we won't break existing clients of Handler on a source code level when adding a new member function.

Provided methods

pub fn put_cf(&mut self, column_family_id: u32, key: &[u8], value: &[u8])[src]

pub fn delete_cf(&mut self, column_family_id: u32, key: &[u8])[src]

pub fn single_delete_cf(&mut self, column_family_id: u32, key: &[u8])[src]

pub fn delete_range_cf(
    &mut self,
    column_family_id: u32,
    begin_key: &[u8],
    end_key: &[u8]
)
[src]

pub fn merge_cf(&mut self, column_family_id: u32, key: &[u8], value: &[u8])[src]

pub fn log_data(&mut self, blob: &[u8])[src]

pub fn mark_begin_prepare(&mut self)[src]

pub fn mark_end_prepare(&mut self, xid: &[u8])[src]

pub fn mark_rollback(&mut self, xid: &[u8])[src]

pub fn mark_commit(&mut self, xid: &[u8])[src]

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

Continue is called by WriteBatch::Iterate. If it returns false, iteration is halted. Otherwise, it continues iterating. The default implementation always returns true.

Loading content...

Implementors

impl WriteBatchHandler for WriteBatchIteratorHandler[src]

Loading content...