net.vz.mongodb.jackson
Class MapReduce.MapReduceCommand<T,K>

java.lang.Object
  extended by net.vz.mongodb.jackson.MapReduce.MapReduceCommand<T,K>
Enclosing class:
MapReduce

public static class MapReduce.MapReduceCommand<T,K>
extends Object


Method Summary
 MapReduce.MapReduceCommand<T,K> setExtra(com.mongodb.DBObject extra)
          Set extra arguments to the map reduce command
 MapReduce.MapReduceCommand<T,K> setFinalize(String finalize)
          Set the finalize function
 MapReduce.MapReduceCommand<T,K> setLimit(int limit)
          Set the limit for the result collection to return
 MapReduce.MapReduceCommand<T,K> setOutputDB(String outputDB)
          Set the db to output to if it's not this db
 MapReduce.MapReduceCommand<T,K> setQuery(com.mongodb.DBObject query)
          Set the query to limit the items that are mapped
 MapReduce.MapReduceCommand<T,K> setReadPreference(com.mongodb.ReadPreference readPreference)
          Set the read preference for reading the results
 MapReduce.MapReduceCommand<T,K> setScope(Map<String,Object> scope)
          Set the scope in which the javascript code for map, reduce and finalise is executed
 MapReduce.MapReduceCommand<T,K> setSort(com.mongodb.DBObject sort)
          Sort the input objects by this key
 MapReduce.MapReduceCommand<T,K> setVerbose(boolean verbose)
          Set whether statistics on job execution time should be provided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setReadPreference

public MapReduce.MapReduceCommand<T,K> setReadPreference(com.mongodb.ReadPreference readPreference)
Set the read preference for reading the results

Parameters:
readPreference - The read preference
Returns:
this command

setOutputDB

public MapReduce.MapReduceCommand<T,K> setOutputDB(String outputDB)
Set the db to output to if it's not this db

Parameters:
outputDB - the db to output to
Returns:
this command

setQuery

public MapReduce.MapReduceCommand<T,K> setQuery(com.mongodb.DBObject query)
Set the query to limit the items that are mapped

Parameters:
query - The query
Returns:
this command

setFinalize

public MapReduce.MapReduceCommand<T,K> setFinalize(String finalize)
Set the finalize function

Parameters:
finalize - The finalize function
Returns:
this command

setSort

public MapReduce.MapReduceCommand<T,K> setSort(com.mongodb.DBObject sort)
Sort the input objects by this key

Parameters:
sort - The sort
Returns:
this command

setLimit

public MapReduce.MapReduceCommand<T,K> setLimit(int limit)
Set the limit for the result collection to return

Parameters:
limit - The limit
Returns:
this command

setScope

public MapReduce.MapReduceCommand<T,K> setScope(Map<String,Object> scope)
Set the scope in which the javascript code for map, reduce and finalise is executed

Parameters:
scope - The scope
Returns:
this command

setVerbose

public MapReduce.MapReduceCommand<T,K> setVerbose(boolean verbose)
Set whether statistics on job execution time should be provided

Parameters:
verbose - True if stats should be provided
Returns:
this command

setExtra

public MapReduce.MapReduceCommand<T,K> setExtra(com.mongodb.DBObject extra)
Set extra arguments to the map reduce command

Parameters:
extra - The extra arguments
Returns:
this command


Copyright © 2011-2012 VZ Netzwerke. All Rights Reserved.