Spring Data Key-Value

org.springframework.data.keyvalue.riak.mapreduce
Class JavascriptMapReduceOperation

java.lang.Object
  extended by 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

Field Summary
protected  BucketKeyPair bucketKeyPair
           
protected  String source
           
 
Constructor Summary
JavascriptMapReduceOperation(BucketKeyPair bucketKeyPair)
           
JavascriptMapReduceOperation(String source)
           
 
Method Summary
 BucketKeyPair getBucketKeyPair()
           
 Object getRepresentation()
          Get the implementation-specific representation of a Map/Reduce operation.
 String getSource()
           
 void setBucketKeyPair(BucketKeyPair bucketKeyPair)
          Set the BucketKeyPair to point to for the Javascript to use in this M/R function.
 void setSource(String source)
          Set the anonymous source to use for the M/R function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected String source

bucketKeyPair

protected BucketKeyPair bucketKeyPair
Constructor Detail

JavascriptMapReduceOperation

public JavascriptMapReduceOperation(String source)

JavascriptMapReduceOperation

public JavascriptMapReduceOperation(BucketKeyPair bucketKeyPair)
Method Detail

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:

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.