[−][src]Trait stdbench::executor::PisaExecutor
Implementations of this trait execute PISA tools.
Required methods
fn command(&self, program: &str) -> ExtCommand
Builds a process object for a program with given arguments.
Methods
impl dyn PisaExecutor
pub fn is<__T: PisaExecutor>(&self) -> bool
Returns true if the trait object wraps an object of type __T
.
pub fn downcast<__T: PisaExecutor>(
self: Box<Self>
) -> Result<Box<__T>, Box<Self>>
self: Box<Self>
) -> Result<Box<__T>, Box<Self>>
Returns a boxed object from a boxed trait object if the underlying object is of type
__T
. Returns the original boxed trait if it isn't.
pub fn downcast_ref<__T: PisaExecutor>(&self) -> Option<&__T>
Returns a reference to the object within the trait object if it is of type __T
, or
None
if it isn't.
pub fn downcast_mut<__T: PisaExecutor>(&mut self) -> Option<&mut __T>
Returns a mutable reference to the object within the trait object if it is of type
__T
, or None
if it isn't.
impl dyn PisaExecutor
[src]
pub fn invert<P1, P2>(
&self,
forward_index: P1,
inverted_index: P2,
term_count: usize
) -> Result<(), Error> where
P1: AsRef<Path>,
P2: AsRef<Path>,
[src]
&self,
forward_index: P1,
inverted_index: P2,
term_count: usize
) -> Result<(), Error> where
P1: AsRef<Path>,
P2: AsRef<Path>,
Runs invert
command.
pub fn compress<P>(
&self,
inverted_index: P,
encoding: &Encoding
) -> Result<(), Error> where
P: AsRef<Path>,
[src]
&self,
inverted_index: P,
encoding: &Encoding
) -> Result<(), Error> where
P: AsRef<Path>,
Runs create_freq_index
command.
pub fn create_wand_data<P>(&self, inverted_index: P) -> Result<(), Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Runs create_freq_index
command.
pub fn build_lexicon<P1, P2>(&self, input: P1, output: P2) -> Result<(), Error> where
P1: AsRef<Path>,
P2: AsRef<Path>,
[src]
P1: AsRef<Path>,
P2: AsRef<Path>,
Runs lexicon build
command.
pub fn extract_topics<P1, P2>(&self, input: P1, output: P2) -> Result<(), Error> where
P1: AsRef<Path>,
P2: AsRef<Path>,
[src]
P1: AsRef<Path>,
P2: AsRef<Path>,
Runs extract_topics
command.
pub fn evaluate_queries<S>(
&self,
collection: &Collection,
_run_data: &EvaluateData,
queries: S
) -> Result<String, Error> where
S: AsRef<str>,
[src]
&self,
collection: &Collection,
_run_data: &EvaluateData,
queries: S
) -> Result<String, Error> where
S: AsRef<str>,
Runs evaluate_queries
command.