net.vz.mongodb.jackson
Class MapReduce

java.lang.Object
  extended by net.vz.mongodb.jackson.MapReduce

public class MapReduce
extends Object

Map reduce command builder


Nested Class Summary
static class MapReduce.MapReduceCommand<T,K>
           
static class MapReduce.OutputType
           
 
Constructor Summary
MapReduce()
           
 
Method Summary
static
<T,K> MapReduce.MapReduceCommand<T,K>
build(String map, String reduce, MapReduce.OutputType outputType, String collection, Class<T> resultType, Class<K> keyType)
          Build a map reduce command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapReduce

public MapReduce()
Method Detail

build

public static <T,K> MapReduce.MapReduceCommand<T,K> build(String map,
                                                          String reduce,
                                                          MapReduce.OutputType outputType,
                                                          String collection,
                                                          Class<T> resultType,
                                                          Class<K> keyType)
Build a map reduce command

Parameters:
map - The map function
reduce - The reduce function
outputType - The outputType
collection - The collection name, may be null if output type is INLINE
resultType - The type to deserialise the result to
keyType - The type of the keys that are being reduced on
Returns:
The command


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