KiokuDB::Role::Scan(3pm)

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 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

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.

Releases

6 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–10
  3. 12–13

Author

Yuval Kogman <[email protected]>

From libkiokudb-perl 0.57-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.