pub struct PisaToCiff { /* private fields */ }Expand description
PISA to CIFF converter.
Implementations§
Source§impl PisaToCiff
impl PisaToCiff
Sourcepub fn description<S: Into<String>>(&mut self, description: S) -> &mut Self
pub fn description<S: Into<String>>(&mut self, description: S) -> &mut Self
Sets CIFF index description.
Sourcepub fn pisa_paths<P: AsRef<OsStr>>(&mut self, base_path: P) -> &mut Self
pub fn pisa_paths<P: AsRef<OsStr>>(&mut self, base_path: P) -> &mut Self
Sets PISA paths. Required.
Paths are constructed by appending file extensions to the base path:
.docsfor document postings,.freqsfor frequency postings,.sizesfor document sizes,.termsfor terms text file,.documentsfor document titles text file,
Sourcepub fn index_paths<P: AsRef<OsStr>>(&mut self, base_path: P) -> &mut Self
pub fn index_paths<P: AsRef<OsStr>>(&mut self, base_path: P) -> &mut Self
Sets PISA (uncompressed) inverted index paths. Required.
Constructs paths using the given base path, appeding suffixes:
.docs, .freqs, and .sizes.
Sourcepub fn terms_path<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self
pub fn terms_path<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self
Sets the path of the term file (newline-delimited text format). Required.
Sourcepub fn titles_path<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self
pub fn titles_path<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self
Sets the path of the document titles file (newline-delimited text format). Required.
Sourcepub fn output_path<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self
pub fn output_path<P: Into<PathBuf>>(&mut self, path: P) -> &mut Self
Set the output file path. Required.
Trait Implementations§
Source§impl Clone for PisaToCiff
impl Clone for PisaToCiff
Source§fn clone(&self) -> PisaToCiff
fn clone(&self) -> PisaToCiff
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PisaToCiff
impl Debug for PisaToCiff
Source§impl Default for PisaToCiff
impl Default for PisaToCiff
Source§fn default() -> PisaToCiff
fn default() -> PisaToCiff
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PisaToCiff
impl RefUnwindSafe for PisaToCiff
impl Send for PisaToCiff
impl Sync for PisaToCiff
impl Unpin for PisaToCiff
impl UnwindSafe for PisaToCiff
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