NAME

DS::Source - component that is the source of rows

DESCRIPTION

This class is the source of rows. It can be bound to any DS::Target, which will receive rows from it. Unless you are into writing complicated classes, you will probably never need to inherit directly from this class.

If you need to write a class that retrieves data from outside a chain and passes it on as rows, please take a look at DS::Importer.

SUPER CLASSES

None.

METHODS

new( $class, $out_type, $target )

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.

attach_target( $target )

Attaches target $target to this object. This method also triggers type checking, ensuring that the outgoing type of this object is sufficient for $target. If the type check fails, an exception is thrown.

target( $target )

This is a method mostly for internal use. It will get or set the target, bypassing type checks.

pass_row( $row )

Calling this metod will cause the transformer to pass $row to the target $target.

out_type( $type )

This is an accessor that gets or sets the outgoing type of this object.

SEE ALSO

DS::Importer, DS::Transformer, DS::Target.

AUTHOR

Written by Michael Zedeler.