|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.mapreduce.JavascriptFunction
WARNING: This class will be REMOVED in the next version.
@Deprecated public class JavascriptFunction
Represents a Javascript function used in a map or reduce phase of a map/reduce job
JavascriptFunction| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.basho.riak.client.mapreduce.MapReduceFunction |
|---|
MapReduceFunction.Types |
| Method Summary | |
|---|---|
static JavascriptFunction |
anon(String functionSource)
Deprecated. Shortcut for creating a reference to an anonymous Javascript function |
static JavascriptFunction |
named(String functionName)
Deprecated. Shortcut for creating a reference to a named Javascript function |
JSONObject |
toJson()
Deprecated. 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 | |||||||||