Author image Andrew Grangaard
and 1 contributors

NAME

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

VERSION

version 0.110030

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) 2011 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.