#[no_mangle]
pub extern "C" fn annis_cs_with_auto_cache_size(
db_dir: *const c_char,
use_parallel_joins: bool,
err: *mut *mut ErrorList
) -> *mut CorpusStorage
Expand description
Create a new instance with a an automatic determined size of the internal corpus cache.
Currently, set the maximum cache size to 25% of the available/free memory at construction time. This behavior can change in the future.
db_dir
- The path on the filesystem where the corpus storage content is located. Must be an existing directory.use_parallel_joins
- Iftrue
parallel joins are used by the system, using all available cores.err
- Pointer to a list of errors. If any error occured, this list will be non-empty.