Tatsuro Hisamori > Data-Riak-Fast-0.03 > Data::Riak::Fast::MapReduce::Phase::Map

Download:
Data-Riak-Fast-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

DESCRIPTION ^

A map/reduce map phase for Data::Riak::Fast

SYNOPSIS ^

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

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.

METHOD =head2 pack() ^

Serialize this map phase.

syntax highlighting: