Jay Hannah > Net-Bullfinch > Net::Bullfinch::Iterator

Download:
Net-Bullfinch-0.13.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.13   Source   Latest Release: Net-Bullfinch-0.16

NAME ^

Net::Bullfinch::Iterator - A way to iterator over results from Bullfinch

VERSION ^

version 0.13

SYNOPSIS ^

    use Net::Bullfinch;

    my $client = Net::Bullfinch->new(host => '172.16.49.130');
    my $req = { statement => 'some-query' };
    my $items = $client->iterate(
        request_queue => 'test-net-kestrel',
        request => $req,
        response_queue_suffix => 'foobar',
        iterator_options => { max_results => 200 }
    );

    while ( my $block = $items->next ) {
        foreach my $item ( @$block ) {
            # do something with each item ...
        }
    }

DESCRIPTION ^

This module provides a way to iterate over a result stream coming from Net::Bullfinch. It uses the Data::Stream::Bulk role and so therefore has all the functionality implied therein.

AUTHOR ^

Cory G Watson <gphat@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: