Florian Ragwitz > Data-Riak-1.3 > Data::Riak::MapReduce::Phase::Map

Download:
Data-Riak-1.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 1.3   Source   Latest Release: Data-Riak-2.0

NAME ^

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

VERSION ^

version 1.3

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 ^

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.

syntax highlighting: