pub struct Fileset {
pub options: FilesetOptions,
/* private fields */
}
Expand description
An MTBL reader that watches a “setfile” containing a list of MTBL files to read from.
It acts like a Merger
that watches that setfile for
updates to a list of MTBL files. Note that paths in the setfile are
relative paths from the directory of the setfile.
Fileset
s are not thread-safe because reloading, which happens
automatically when reading, is not thread-safe–so only one thread can read
from a Fileset
.
To create a Fileset with non-default options, see FilesetOptions.
§Examples
$ cp my-data.mtbl /tmp/my-data.mtbl
$ echo "my-data.mtbl" >> /tmp/fs.mtbl-fileset
...
let fileset = Fileset::open_from_path("/tmp/fs.mtbl-fileset", my_merge_fn);
Fields§
§options: FilesetOptions
The options used to open this Fileset
.
Implementations§
Trait Implementations§
Source§impl<'a> IntoIterator for &'a Fileset
impl<'a> IntoIterator for &'a Fileset
Source§impl Read for Fileset
impl Read for Fileset
Source§fn raw_mtbl_source(&self) -> &*const mtbl_source
fn raw_mtbl_source(&self) -> &*const mtbl_source
Get the internal mtbl_source pointer.
Source§fn get_prefix<T>(&self, prefix: T) -> Iter<'_> ⓘ
fn get_prefix<T>(&self, prefix: T) -> Iter<'_> ⓘ
Get an iterator over all keys and values where the key starts with the given prefix.
Auto Trait Implementations§
impl Freeze for Fileset
impl !RefUnwindSafe for Fileset
impl !Send for Fileset
impl !Sync for Fileset
impl Unpin for Fileset
impl !UnwindSafe for Fileset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more