Merge pull request #284 from elichai/iterator_cf

Added a function to create iterator with specific CF and ReadOptions
master
Jordan Terrell 6 years ago committed by GitHub
commit 8d76566987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      src/db.rs

@ -1093,6 +1093,17 @@ impl DB {
DBIterator::new(self, &readopts, mode)
}
/// Opens an interator using the provided ReadOptions.
/// This is used when you want to iterate over a specific ColumnFamily with a modified ReadOptions
pub fn iterator_cf_opt(
&self,
cf_handle: ColumnFamily,
readopts: &ReadOptions,
mode: IteratorMode,
) -> Result<DBIterator, Error> {
DBIterator::new_cf(self, cf_handle, &readopts, mode)
}
/// Opens an interator with `set_total_order_seek` enabled.
/// This must be used to iterate across prefixes when `set_memtable_factory` has been called
/// with a Hash-based implementation.

Loading…
Cancel
Save