DS::Importer - component that retrieves data from outside DS and passes it down a processing chain.
This is the base class of any component that is supposed to retrieve data from outside a processing chain and pass it on as rows. The name refers to a component that imports data into a chain.
DS::Source
Will call fetch pass the results on by calling pass_row with the result, stopping after fetching $num_rows or passing on end of stream (whichever comes first).
fetch
pass_row
$num_rows
This method is supposed to retrieve a row from the underlying data source and return it. Must return undef to indicate end of stream. Multiple calls after end of stream should still result in returning undef.
Constructor. Instantiates an object of class $class, returning the type $out_type, attaced to the target $target. Besides $class, any of the parameters can be left out.
$class
$out_type
$target
Methods inherited from DS::Source:
DS::Importer, DS::Transformer, DS::Target.
Written by Michael Zedeler.
To install DS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DS
CPAN shell
perl -MCPAN -e shell install DS
For more information on module installation, please visit the detailed CPAN module installation guide.