Florian Ragwitz

NAME

Data::Riak::MapReduce::Phase::Map - Map phase of a MapReduce

VERSION

version 2.0

SYNOPSIS

  my $mp = Data::Riak::MapReduce::Phase::Map->new(
    language => "javascript", # The default
    source => "function(v) { return [ v ] }",
    keep => 1 # The default
  );

DESCRIPTION

A map/reduce map phase for Data::Riak

ATTRIBUTES

keep

Flag controlling whether the results of this phase are included in the final result of the map/reduce. Defaults to true.

language

The language used with this phase. One of javascript or erlang. This attribute is required.

name

The name, used with built-in functions provided by Riak such as Riak.mapValues.

arg

The static argument passed to the map function.

module

The module name, if you are using a riak built-in function.

function

The function name, if you are using a riak built-in function.

source

The source of the function used in this phase.

METHODS

pack

Serialize this map phase.

AUTHORS

  • Andrew Nelson <anelson at cpan.org>

  • Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

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

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




Hosting generously
sponsored by Bytemark