The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Hadoop::Streaming::Reducer::Input::Iterator - Collects values for each key together with an iterator interface

VERSION

version 0.143060

METHODS

has_next

    $Iterator->has_next();

Checks if the iterator has a next_key. Returns 1 if there is another key in the input iterator.

next

    $Iterator->next();

Returns the key and value iterator for the next key. Discards any remaining values from the current key.

Moves the iterator to the next key value, and returns the output of retval( $key, $value);

retval

    $Iterator->retval($key );
    $Iterator->retval($key, $value);

Returns an two element array containing the key and a Hadoop::Streaming::Reducer::Input::ValuesIterator initialized with the given value as the first element.

( $key, $ValueIterator)

AUTHORS

  • andrew grangaard <spazm@cpan.org>

  • Naoya Ito <naoya@hatena.ne.jp>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Naoya Ito <naoya@hatena.ne.jp>.

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