DS::Target - target of rows.
This class is the target of rows. It can be bound to any DS::Source, which will send rows to it. Unless you are into writing complicated classes, you will probably never need to inherit directly from this class.
DS::Source
None.
Constructor. Instantiates an object of class $class, taking the type $in_type, attached to the source $source. Besides $class, any of the parameters can be left out.
$class
$in_type
$source
Triggers processing of $row. This method calls process with $row, and then passes the result to pass_row.
$row
process
pass_row
Attaches $source as source. This method also validates data types by calling validate_source_type, throwing an exception if the validation fails.
validate_source_type
Accessor for source. This method sets the source of this object and triggers type checking.
Validates source type. If the $source_type is not valid, it returns false, true otherwise. By default, this method ensures that the ingoing type of this object contains no fields not specified in $source_type. Override if you need more complex checking.
$source_type
Accessor for ingoing type.
DS::Transformer, DS::Source.
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.