org.springframework.data.keyvalue.riak.mapreduce
Class JavascriptMapReduceOperation
java.lang.Object
org.springframework.data.keyvalue.riak.mapreduce.JavascriptMapReduceOperation
- All Implemented Interfaces:
- MapReduceOperation
public class JavascriptMapReduceOperation
- extends Object
- implements MapReduceOperation
An implementation of MapReduceOperation
to describe a Javascript language M/R function.
- Author:
- J. Brisbin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
source
protected String source
bucketKeyPair
protected BucketKeyPair bucketKeyPair
JavascriptMapReduceOperation
public JavascriptMapReduceOperation(String source)
JavascriptMapReduceOperation
public JavascriptMapReduceOperation(BucketKeyPair bucketKeyPair)
getSource
public String getSource()
setSource
public void setSource(String source)
- Set the anonymous source to use for the M/R function.
- Parameters:
source
-
getBucketKeyPair
public BucketKeyPair getBucketKeyPair()
setBucketKeyPair
public void setBucketKeyPair(BucketKeyPair bucketKeyPair)
- Set the
BucketKeyPair
to
point to for the Javascript to use in this M/R function.
- Parameters:
bucketKeyPair
-
getRepresentation
public Object getRepresentation()
- Description copied from interface:
MapReduceOperation
- Get the implementation-specific representation of a Map/Reduce operation.
- Specified by:
getRepresentation
in interface MapReduceOperation
- Returns:
Copyright © 2010-2011 SpringSource. All Rights Reserved.