KiokuDB::Role::Scan3pm
A role for entry scanning.
Usage
package My::Entry::Processor;use Moose;with 'KiokuDB::Role::Scan' => { result_class => "My::Entry::Processor::Results" };sub process_block {my ( $self, %args ) = @_;$args{results}; # intermediate resultsforeach my $entry ( @{ $args{block} } ) {}}my $scan = My::Entry::Processor->new(backend => $some_backend,);my $res = $scan->results;$res->foo;$scan->foo; # delegates to result
Version
version 0.57
Overview
This role is used by classes like KiokuDB::LinkChecker to scan the whole database and computing summary results.
Role parameters
- result_class
-
The class of the results.
Will be used when creating the results initially by calling
"new"and also sets up an attribute with delegations.
Copyright and license
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Releases
6 releases since Debian 7 (Wheezy); the text changed 2 times.