Struct rocks::db::ColumnFamilyHandle
[−]
[src]
pub struct ColumnFamilyHandle<'a, 'b: 'a> { /* fields omitted */ }
Handle for a opened column family
Methods
impl<'a, 'b: 'a> ColumnFamilyHandle<'a, 'b>
[src]
fn name(&self) -> &str
Returns the name of the column family associated with the current handle.
fn id(&self) -> u32
Returns the ID of the column family associated with the current handle.
fn put(&self, options: &WriteOptions, key: &[u8], value: &[u8]) -> Result<()>
fn delete(&self, options: &WriteOptions, key: &[u8]) -> Result<()>
fn single_delete(&self, options: &WriteOptions, key: &[u8]) -> Result<()>
fn delete_range(
&self,
options: &WriteOptions,
begin_key: &[u8],
end_key: &[u8]
) -> Result<()>
&self,
options: &WriteOptions,
begin_key: &[u8],
end_key: &[u8]
) -> Result<()>
fn merge(&self, options: &WriteOptions, key: &[u8], val: &[u8]) -> Result<()>
fn get(&self, options: &ReadOptions, key: &[u8]) -> Result<PinnableSlice>
fn multi_get(
&self,
options: &ReadOptions,
keys: &[&[u8]]
) -> Vec<Result<CVec<u8>>>
&self,
options: &ReadOptions,
keys: &[&[u8]]
) -> Vec<Result<CVec<u8>>>
fn key_may_exist(&self, options: &ReadOptions, key: &[u8]) -> bool
fn key_may_get(
&self,
options: &ReadOptions,
key: &[u8]
) -> (bool, Option<CVec<u8>>)
&self,
options: &ReadOptions,
key: &[u8]
) -> (bool, Option<CVec<u8>>)
fn new_iterator(&self, options: &ReadOptions) -> Iterator
fn get_property(&self, property: &str) -> Option<String>
fn get_int_property(&self, property: &str) -> Option<u64>
fn compact_range<R: ToCompactRange>(
&self,
options: &CompactRangeOptions,
range: R
) -> Result<()>
&self,
options: &CompactRangeOptions,
range: R
) -> Result<()>
Trait Implementations
impl<'a, 'b> Drop for ColumnFamilyHandle<'a, 'b>
[src]
impl<'a, 'b> AsRef<ColumnFamilyHandle<'a, 'b>> for ColumnFamilyHandle<'a, 'b>
[src]
fn as_ref(&self) -> &ColumnFamilyHandle<'a, 'b>
Performs the conversion.