com.basho.riak.client.http.mapreduce
Class ErlangFunction
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErlangFunction
public ErlangFunction(String module,
String functionName)
- Constructs a new ErlangFunction instance
- Parameters:
module
- Erlang module namefunctionName
- Erlang function name
toJson
public JSONObject toJson()
- Converts the function definition to JSON
- Specified by:
toJson
in interface MapReduceFunction
Copyright © 2012. All Rights Reserved.