[−][src]Struct rocks::db::ColumnFamily
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]
&self,
options: &WriteOptions,
key: &[u8],
value: &[u8]
) -> Result<()>
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]
&self,
options: &WriteOptions,
begin_key: &[u8],
end_key: &[u8]
) -> Result<()>
pub fn merge(
&self,
options: &WriteOptions,
key: &[u8],
val: &[u8]
) -> Result<()>
[src]
&self,
options: &WriteOptions,
key: &[u8],
val: &[u8]
) -> Result<()>
pub fn get(&self, options: &ReadOptions, key: &[u8]) -> Result<PinnableSlice>
[src]
pub fn multi_get(
&self,
options: &ReadOptions,
keys: &[&[u8]]
) -> Vec<Result<PinnableSlice>>
[src]
&self,
options: &ReadOptions,
keys: &[&[u8]]
) -> Vec<Result<PinnableSlice>>
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]
&self,
options: &ReadOptions,
key: &[u8]
) -> (bool, Option<Vec<u8>>)
pub fn new_iterator(&self, options: &ReadOptions) -> Iterator
[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]
&self,
options: &CompactRangeOptions,
range: R
) -> Result<()>
pub fn set_options<T, H>(&self, new_options: H) -> Result<()> where
T: AsRef<str>,
H: IntoIterator<Item = (T, T)>,
[src]
T: AsRef<str>,
H: IntoIterator<Item = (T, T)>,
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]
&self,
external_files: T,
options: &IngestExternalFileOptions
) -> Result<()>
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]
fn as_ref(&self) -> &ColumnFamilyHandle
[src]
impl Debug for ColumnFamily
[src]
impl Deref for ColumnFamily
[src]
type Target = ColumnFamilyHandle
The resulting type after dereferencing.
fn deref(&self) -> &ColumnFamilyHandle
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,