com.basho.riak.client.http.mapreduce
Class ErlangFunction

java.lang.Object
  extended by com.basho.riak.client.http.mapreduce.ErlangFunction
All Implemented Interfaces:
MapReduceFunction

public class ErlangFunction
extends Object
implements MapReduceFunction

Represents an Erlang function used in a map or reduce phase of a map/reduce job


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.basho.riak.client.http.mapreduce.MapReduceFunction
MapReduceFunction.Types
 
Constructor Summary
ErlangFunction(String module, String functionName)
          Constructs a new ErlangFunction instance
 
Method Summary
 JSONObject toJson()
          Converts the function definition to JSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErlangFunction

public ErlangFunction(String module,
                      String functionName)
Constructs a new ErlangFunction instance

Parameters:
module - Erlang module name
functionName - Erlang function name
Method Detail

toJson

public JSONObject toJson()
Converts the function definition to JSON

Specified by:
toJson in interface MapReduceFunction


Copyright © 2012. All Rights Reserved.