NAME

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

VERSION

version 0.2

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.

source

The source of the function used in this phase.

METHODS

pack

Serialize this map phase.

AUTHOR

Andrew Nelson <anelson at cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 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.