vg
tools for working with variation graphs
|
#include <index_registry.hpp>
Public Member Functions | |
IndexingPlan ()=default | |
~IndexingPlan ()=default | |
string | output_filepath (const IndexName &identifier) const |
Get the suffix with which to save the given index's files. More... | |
string | output_filepath (const IndexName &identifier, size_t chunk, size_t num_chunks) const |
Get the suffix with which to save the given index's files. More... | |
const vector< RecipeName > & | get_steps () const |
Ge the steps of the plan. More... | |
bool | is_intermediate (const IndexName &identifier) const |
int64_t | target_memory_usage () const |
The memory limit, with a little slosh for prediction inaccuracy. More... | |
int64_t | literal_target_memory_usage () const |
The mmeory limit with no slosh. More... | |
set< RecipeName > | dependents (const IndexName &identifier) const |
Protected Attributes | |
vector< RecipeName > | steps |
set< IndexName > | targets |
The indexes to create as outputs. More... | |
IndexRegistry * | registry |
Friends | |
class | IndexRegistry |
A plan for producing indexes, which knows what should be saved and what should be ephemeral. Wants to be nested inside IndexRegistry, but you can't forward-declare a nested class.
|
default |
|
default |
set< RecipeName > vg::IndexingPlan::dependents | ( | const IndexName & | identifier | ) | const |
Returns the recipes in the plan that depend on this index, including the one in which it was created (if any)
const vector< RecipeName > & vg::IndexingPlan::get_steps | ( | ) | const |
Ge the steps of the plan.
bool vg::IndexingPlan::is_intermediate | ( | const IndexName & | identifier | ) | const |
Returns true if the given index is to be intermediate under the given plan, and false if it is to be preserved.
int64_t vg::IndexingPlan::literal_target_memory_usage | ( | ) | const |
The mmeory limit with no slosh.
string vg::IndexingPlan::output_filepath | ( | const IndexName & | identifier | ) | const |
Get the suffix with which to save the given index's files.
string vg::IndexingPlan::output_filepath | ( | const IndexName & | identifier, |
size_t | chunk, | ||
size_t | num_chunks | ||
) | const |
Get the suffix with which to save the given index's files.
int64_t vg::IndexingPlan::target_memory_usage | ( | ) | const |
The memory limit, with a little slosh for prediction inaccuracy.
|
friend |
|
protected |
The registry that the plan is using. The registry must not move while the plan is in use. Can't be const because we need to get_work_dir() on it, which may create the work directory.
|
protected |
The steps to be invoked in the plan. May be empty before the plan is actually planned.
|
protected |
The indexes to create as outputs.