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


Hadoop-Streaming documentation  | view source Contained in the Hadoop-Streaming distribution.

Index


NAME

Top

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

VERSION

Top

version 0.110030

METHODS

Top

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

Top

COPYRIGHT AND LICENSE

Top


Hadoop-Streaming documentation  | view source Contained in the Hadoop-Streaming distribution.