NAME

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

VERSION

version 0.16

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.

AUTHORS

  • Cory G Watson <gphat@cpan.org>

  • Stevan Little <stevan.little@iinteractive.com>

  • Jay Hannah <jay.hannah@iinteractive.com>

  • Trey Bianchini <trey.bianchini@iinteractive.com>

  • Jesse Luehrs <doy@tozt.net>

  • Florian Ragwitz <rafl@debian.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.