O - type of values accepted by this outputpublic class InMemoryOutput<O> extends Output<O,List<List<O>>>
Output that collects all values in memory and returns them on
finish(java.util.Collection<? extends com.google.appengine.tools.mapreduce.OutputWriter<O>>). Don't use this unless the entire output is small enough to
fit in memory.| Constructor and Description |
|---|
InMemoryOutput() |
| Modifier and Type | Method and Description |
|---|---|
List<? extends OutputWriter<O>> |
createWriters(int numShards)
Returns a list of writers, one for each shard, for this output.
|
List<List<O>> |
finish(Collection<? extends OutputWriter<O>> writers)
Returns a list of lists where the outer list has one element for each
reduce shard, which is a list of the values emitted by that shard, in
order.
|
getContext, setContextpublic List<? extends OutputWriter<O>> createWriters(int numShards)
OutputcreateWriters in class Output<O,List<List<O>>>numShards - The number of shards which should be equal to the number of
OutputWriters returned.Copyright © 2015 Google. All rights reserved.