com.basho.riak.client.mapreduce
Class JavascriptFunction

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

Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved. Please use com.basho.riak.client.http.mapreduce.JavascriptFunction instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
public class JavascriptFunction
extends Object
implements MapReduceFunction

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

See Also:
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

named

public static JavascriptFunction named(String functionName)
Deprecated. 
Shortcut for creating a reference to a named Javascript function

Parameters:
functionName - Name of Javascript function ("Riak.mapValuesJson")

anon

public static JavascriptFunction anon(String functionSource)
Deprecated. 
Shortcut for creating a reference to an anonymous Javascript function

Parameters:
functionSource - Javascript function source ("function(v) { return [v]; }")

toJson

public JSONObject toJson()
Deprecated. 
Converts the function definition to JSON

Specified by:
toJson in interface MapReduceFunction


Copyright © 2012. All Rights Reserved.