Spring Data Key-Value

org.springframework.data.keyvalue.riak.mapreduce
Class ErlangMapReduceOperation

java.lang.Object
  extended by org.springframework.data.keyvalue.riak.mapreduce.ErlangMapReduceOperation
All Implemented Interfaces:
MapReduceOperation

public class ErlangMapReduceOperation
extends Object
implements MapReduceOperation

An implementation of MapReduceOperation to represent an Erlang M/R function, which must be already defined inside the Riak server.

Author:
J. Brisbin <[email protected]>

Field Summary
protected  String language
           
protected  Map moduleFunction
           
 
Constructor Summary
ErlangMapReduceOperation()
           
ErlangMapReduceOperation(String module, String function)
           
 
Method Summary
 Object getRepresentation()
          Get the implementation-specific representation of a Map/Reduce operation.
 void setFunction(String function)
          Set the name of this Erlang function.
 void setModule(String module)
          Set the Erlang module this function is defined in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

protected String language

moduleFunction

protected Map moduleFunction
Constructor Detail

ErlangMapReduceOperation

public ErlangMapReduceOperation()

ErlangMapReduceOperation

public ErlangMapReduceOperation(String module,
                                String function)
Method Detail

setModule

public void setModule(String module)
Set the Erlang module this function is defined in.

Parameters:
module -

setFunction

public void setFunction(String function)
Set the name of this Erlang function.

Parameters:
function -

getRepresentation

public Object getRepresentation()
Description copied from interface: MapReduceOperation
Get the implementation-specific representation of a Map/Reduce operation.

Specified by:
getRepresentation in interface MapReduceOperation
Returns:

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.