public final class BlobFileOutput extends Output<ByteBuffer,List<com.google.appengine.api.files.AppEngineFile>>
Output
that writes bytes to a set of blob files, one per shard.Constructor and Description |
---|
BlobFileOutput(String fileNamePattern,
String mimeType) |
Modifier and Type | Method and Description |
---|---|
List<BlobFileOutputWriter> |
createWriters(int numShards)
Returns a list of writers, one for each shard, for this output.
|
List<com.google.appengine.api.files.AppEngineFile> |
finish(Collection<? extends OutputWriter<ByteBuffer>> writers)
Returns a list of AppEngineFiles that has one element for each reduce
shard.
|
getContext, setContext
public List<BlobFileOutputWriter> createWriters(int numShards)
Output
createWriters
in class Output<ByteBuffer,List<com.google.appengine.api.files.AppEngineFile>>
numShards
- The number of shards which should be equal to the number of
OutputWriter
s returned.public List<com.google.appengine.api.files.AppEngineFile> finish(Collection<? extends OutputWriter<ByteBuffer>> writers)
AppEngineFile
or null (if that
reduce shard emitted no data).finish
in class Output<ByteBuffer,List<com.google.appengine.api.files.AppEngineFile>>
Copyright © 2015 Google. All rights reserved.