ensembl-hive
2.1
|
Public Member Functions | |
public | param_defaults () |
public | fetch_input () |
public | run () |
public | write_output () |
![]() | |
public | new () |
public | life_cycle () |
public | say_with_header () |
public | enter_status () |
public | warning () |
public | strict_hash_format () |
public | param_defaults () |
public | fetch_input () |
public | run () |
public | write_output () |
public Bio::EnsEMBL::Hive::Worker | worker () |
public Boolean | execute_writes () |
public Bio::EnsEMBL::Hive::DBSQL::DBAdaptor | db () |
public Bio::EnsEMBL::Hive::DBSQL::DBConnection | dbc () |
public Bio::EnsEMBL::Hive::DBSQL::DBConnection | data_dbc () |
public Bio::EnsEMBL::Hive::AnalysisJob | input_job () |
public | input_id () |
public | param () |
public | param_required () |
public | param_is_defined () |
public | param_substitute () |
public | dataflow_output_id () |
public | throw () |
public | complete_early () |
public Int | debug () |
public | worker_temp_directory () |
public | worker_temp_directory_name () |
public | cleanup_worker_temp_directory () |
'LongMult::DigitFactory' is the first step of the LongMult example pipeline that multiplies two long numbers. It takes apart the second multiplier and creates several 'LongMult::PartMultiply' jobs that correspond to the different digits of the second multiplier. It also "flows into" one 'LongMult::AddTogether' job that will wait until 'LongMult::PartMultiply' jobs complete and will arrive at the final result.
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::DigitFactory::fetch_input | ( | ) |
Description : Implements fetch_input() interface method of Bio::EnsEMBL::Hive::Process that is used to read in parameters and load data. Here the task of fetch_input() is to read in the two multipliers, split the second one into digits and create a set of input_ids that will be used later.
param('b_multiplier'): The second long number (a string of digits - doesn't have to fit a register)
param('take_time'): How much time to spend sleeping (seconds).
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::DigitFactory::param_defaults | ( | ) |
Description : Implements param_defaults() interface method of Bio::EnsEMBL::Hive::Process that defines module defaults for parameters.
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::DigitFactory::run | ( | ) |
Description : Implements run() interface method of Bio::EnsEMBL::Hive::Process that is used to perform the main bulk of the job (minus input and output). Here we don't have any real work to do, just input and output, so run() just spends some time waiting.
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::DigitFactory::write_output | ( | ) |
Description : Implements write_output() interface method of Bio::EnsEMBL::Hive::Process that is used to deal with job's output after the execution. Here we dataflow all the partial multiplication jobs whose input_ids were generated in fetch_input() into the branch-2 ("fan out"), and also dataflow the original task down branch-1 (create the "funnel job").