|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basho.riak.client.http.mapreduce.JavascriptFunction
public class JavascriptFunction
Represents a Javascript 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 |
Method Summary | |
---|---|
static JavascriptFunction |
anon(String functionSource)
Shortcut for creating a reference to an anonymous Javascript function |
static JavascriptFunction |
named(String functionName)
Shortcut for creating a reference to a named Javascript function |
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 |
Method Detail |
---|
public static JavascriptFunction named(String functionName)
functionName
- Name of Javascript function ("Riak.mapValuesJson")public static JavascriptFunction anon(String functionSource)
functionSource
- Javascript function source ("function(v) { return [v]; }")public JSONObject toJson()
toJson
in interface MapReduceFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |