KiokuDB::Role::Scan(3pm) | User Contributed Perl Documentation | KiokuDB::Role::Scan(3pm) |
KiokuDB::Role::Scan - A role for entry scanning.
version 0.57
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 results foreach my $entry ( @{ $args{block} } ) { } } my $scan = My::Entry::Processor->new( backend => $some_backend, ); my $res = $scan->results; $res->foo; $scan->foo; # delegates to result
This role is used by classes like KiokuDB::LinkChecker to scan the whole database and computing summary results.
Will be used when creating the results initially by calling "new" and also sets up an attribute with delegations.
Yuval Kogman <nothingmuch@woobling.org>
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.
2022-05-23 | perl v5.34.0 |