| Modifier and Type | Method and Description | 
|---|---|
| abstract List<? extends OutputWriter<O>> | Output. createWriters(int numShards)Returns a list of writers, one for each shard, for this output. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract R | Output. finish(Collection<? extends OutputWriter<O>> writers)Returns a result to be made available through  MapReduceResult.getOutputResult(). | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | GoogleCloudStorageMapOutputWriter<K,V>An  OutputWriterthat is used by the map stage and writes bytes to GCS,
 later to be used by the sort/merge stages. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract OutputWriter<O> | WorkerShardTask. getOutputWriter() | 
| OutputWriter<O> | ReduceShardTask. getOutputWriter() | 
| OutputWriter<KeyValue<K,V>> | MapShardTask. getOutputWriter() | 
| OutputWriter<O> | MapOnlyShardTask. getOutputWriter() | 
| Modifier and Type | Method and Description | 
|---|---|
| List<? extends OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>>> | GoogleCloudStorageSortOutput. createWriters(int shards) | 
| List<? extends OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>>> | GoogleCloudStorageMergeOutput. createWriters(int shards)Returns a writer that writes the data the same way that the sort does, splitting the output
 every time the key goes backwards in sequence. | 
| List<? extends OutputWriter<KeyValue<K,V>>> | GoogleCloudStorageMapOutput. createWriters(int shards) | 
| Modifier and Type | Method and Description | 
|---|---|
| FilesByShard | GoogleCloudStorageSortOutput. finish(Collection<? extends OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>>> writers) | 
| FilesByShard | GoogleCloudStorageMergeOutput. finish(Collection<? extends OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>>> writers) | 
| FilesByShard | GoogleCloudStorageMapOutput. finish(Collection<? extends OutputWriter<KeyValue<K,V>>> outputWriters) | 
| Constructor and Description | 
|---|
| BaseShardContext(IncrementalTaskContext taskContext,
                OutputWriter<O> outputWriter) | 
| MapOnlyShardTask(String mrJobId,
                int shardNumber,
                int shardCount,
                InputReader<I> in,
                MapOnlyMapper<I,O> mapper,
                OutputWriter<O> out,
                long millisPerSlice) | 
| MapShardTask(String mrJobId,
            int shardNumber,
            int shardCount,
            InputReader<I> in,
            Mapper<I,K,V> mapper,
            OutputWriter<KeyValue<K,V>> out,
            long millisPerSlice) | 
| ReduceShardTask(String mrJobId,
               int shardNumber,
               int shardCount,
               InputReader<KeyValue<K,Iterator<V>>> in,
               Reducer<K,V,O> reducer,
               OutputWriter<O> out,
               long millisPerSlice) | 
| Modifier and Type | Method and Description | 
|---|---|
| OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>> | MergeShardTask. getOutputWriter() | 
| OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>> | SortShardTask. getOutputWriter() | 
| Constructor and Description | 
|---|
| MergeShardTask(String mrJobId,
              int shardNumber,
              int shardCount,
              InputReader<KeyValue<ByteBuffer,Iterator<ByteBuffer>>> in,
              OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>> out,
              int sortReadTimeMillis) | 
| SortShardTask(String mrJobId,
             int shardNumber,
             int shardCount,
             InputReader<KeyValue<ByteBuffer,ByteBuffer>> in,
             SortWorker worker,
             OutputWriter<KeyValue<ByteBuffer,List<ByteBuffer>>> out,
             int sortReadTimeMillis) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ShardingOutputWriter<K,V,WriterT extends OutputWriter<KeyValue<K,V>>>Writes  KeyValues out to a number of output writers each corresponding to a different
 shard A sharder and an Output object are provided in the constructor. | 
| class  | SliceSegmentingOutputWriter<O,WriterT extends OutputWriter<O>>Segments data by using a separate writer for each slice. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BlobFileOutputWriterAn  OutputWriterthat writes bytes to a blob file that it creates. | 
| static class  | DatastoreOutput.DatastoreOutputWriter | 
| class  | ForwardingOutputWriter<O> | 
| class  | GoogleCloudStorageFileOutputWriterAn  OutputWriterthat writes bytes to a GCS file that it creates. | 
| class  | GoogleCloudStorageLevelDbOutputWriterA decorator for LevelDbOutputWriter that delegates to  GoogleCloudStorageFileOutputWriterand pads blocks to GCS write boundaries on end of slice. | 
| class  | InMemoryOutputWriter<O> | 
| class  | ItemSegmentingOutputWriter<O>Segments data by using a separate writer each time  ItemSegmentingOutputWriter.shouldSegment(O)returns true. | 
| class  | LevelDbOutputWriterAn implementation of a LevelDb format writer. | 
| class  | MarshallingOutputWriter<O>An  OutputWriterthat marshalls records. | 
| class  | ShardingOutputWriter<K,V,WriterT extends OutputWriter<KeyValue<K,V>>>Writes  KeyValues out to a number of output writers each corresponding to a different
 shard A sharder and an Output object are provided in the constructor. | 
| class  | SizeSegmentingOutputWriterSegments the output base on the specified size limit. | 
| class  | SliceSegmentingOutputWriter<O,WriterT extends OutputWriter<O>>Segments data by using a separate writer for each slice. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected OutputWriter<ByteBuffer> | SizeSegmentingOutputWriter. createNextWriter(int fileNum) | 
| protected abstract OutputWriter<O> | ItemSegmentingOutputWriter. createNextWriter(int fileNum) | 
| protected abstract OutputWriter<ByteBuffer> | SizeSegmentingOutputWriter. createWriter(int fileNum) | 
| protected abstract OutputWriter<?> | ForwardingOutputWriter. getDelegate() | 
| protected OutputWriter<O> | ItemSegmentingOutputWriter. getDelegate() | 
| protected OutputWriter<ByteBuffer> | MarshallingOutputWriter. getDelegate() | 
| protected OutputWriter<ByteBuffer> | LevelDbOutputWriter. getDelegate() | 
| Modifier and Type | Method and Description | 
|---|---|
| List<? extends OutputWriter<O>> | InMemoryOutput. createWriters(int numShards) | 
| List<? extends OutputWriter<O>> | StringOutput. createWriters(int numShards) | 
| List<? extends OutputWriter<ByteBuffer>> | SizeSegmentedGoogleCloudStorageFileOutput. createWriters(int numShards)Returns  OutputWriters that write files to GCS but segments the files based on the
 maximum allowed file size. | 
| List<? extends OutputWriter<O>> | NoOutput. createWriters(int numShards) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<com.google.appengine.api.files.AppEngineFile> | BlobFileOutput. finish(Collection<? extends OutputWriter<ByteBuffer>> writers)Returns a list of AppEngineFiles that has one element for each reduce
 shard. | 
| GoogleCloudStorageFileSet | SizeSegmentedGoogleCloudStorageFileOutput. finish(Collection<? extends OutputWriter<ByteBuffer>> writers)Returns a list of all the filenames written by the output writers | 
| GoogleCloudStorageFileSet | GoogleCloudStorageLevelDbOutput. finish(Collection<? extends OutputWriter<ByteBuffer>> writers) | 
| GoogleCloudStorageFileSet | GoogleCloudStorageFileOutput. finish(Collection<? extends OutputWriter<ByteBuffer>> writers)Returns a list of GcsFilename that has one element for each reduce shard. | 
| R | LevelDbOutput. finish(Collection<? extends OutputWriter<ByteBuffer>> writers) | 
| Void | DatastoreOutput. finish(Collection<? extends OutputWriter<com.google.appengine.api.datastore.Entity>> writers)Returns null. | 
| BigQueryStoreResult<GoogleCloudStorageFileSet> | BigQueryGoogleCloudStorageStoreOutput. finish(Collection<? extends OutputWriter<O>> writers) | 
| List<List<O>> | InMemoryOutput. 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. | 
| R | StringOutput. finish(Collection<? extends OutputWriter<O>> writers)Returns whatever the underlying  Output'sStringOutput.finish(java.util.Collection<? extends com.google.appengine.tools.mapreduce.OutputWriter<O>>)method returns. | 
| R | MarshallingOutput. finish(Collection<? extends OutputWriter<O>> writers) | 
| R | NoOutput. finish(Collection<? extends OutputWriter<O>> writers)Returns  null. | 
| Constructor and Description | 
|---|
| GoogleCloudStorageLevelDbOutputWriter(OutputWriter<ByteBuffer> delegate) | 
| LevelDbOutputWriter(OutputWriter<ByteBuffer> delegate) | 
| MarshallingOutputWriter(OutputWriter<ByteBuffer> writer,
                       Marshaller<? super O> marshaller) | 
Copyright © 2015 Google. All rights reserved.