[][src]Struct stdbench::config::Collection

pub struct Collection {
    pub name: String,
    pub kind: Box<dyn CollectionType>,
    pub collection_dir: PathBuf,
    pub forward_index: PathBuf,
    pub inverted_index: PathBuf,
    pub encodings: Vec<Encoding>,
}

Configuration of a tested collection.

Fields

name: String

A collection name.

kind: Box<dyn CollectionType>

The colleciton's type used when deciding on how to parse it.

collection_dir: PathBuf

The root directory of the collection. Depending on a type, it could contain one or many files or directories. Must use name to determine how to find relevant data.

forward_index: PathBuf

The basename of the forward index.

inverted_index: PathBuf

The basename of the inverted index.

encodings: Vec<Encoding>

The list of index encoding techniques to be tested. The compression step will be therefore run encodings.len() times, one for each technique.

Methods

impl Collection[src]

pub fn fwd(&self) -> Result<&str, Error>[src]

Returns a string representing forward index path.

pub fn inv(&self) -> Result<&str, Error>[src]

Returns a string representing inverted index path.

Trait Implementations

impl FromYaml for Collection[src]

fn from_yaml_at_key(yaml: &Yaml, key: &str) -> Result<Self, Error>[src]

Parse a property value at a given key.

impl PartialEq<Collection> for Collection[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Debug for Collection[src]

Auto Trait Implementations

impl !Sync for Collection

impl !Send for Collection

impl Unpin for Collection

impl !UnwindSafe for Collection

impl !RefUnwindSafe for Collection

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]