K - type of intermediate keysV - type of intermediate valuespublic class GoogleCloudStorageMapOutputWriter<K,V> extends ShardingOutputWriter<K,V,com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V>>
OutputWriter that is used by the map stage and writes bytes to GCS,
later to be used by the sort/merge stages.
Content is written in a LevelDb log Format and then using the KeyValueMarshaller
to marshall the individual record.sharder| Constructor and Description |
|---|
GoogleCloudStorageMapOutputWriter(String bucket,
String fileNamePattern,
Marshaller<K> keyMarshaller,
Marshaller<V> valueMarshaller,
Sharder sharder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowSliceRetry() |
com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V> |
createWriter(int sortShard)
Creates a new writer.
|
long |
estimateMemoryRequirement()
Returns the estimated memory that will be used by this writer in bytes.
|
protected Map<Integer,com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V>> |
getShardsToWriterMap() |
beginShard, beginSlice, endShard, endSlice, writecleanup, close, getContext, open, setContextpublic GoogleCloudStorageMapOutputWriter(String bucket, String fileNamePattern, Marshaller<K> keyMarshaller, Marshaller<V> valueMarshaller, Sharder sharder)
public boolean allowSliceRetry()
allowSliceRetry in class ShardingOutputWriter<K,V,com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V>>public com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V> createWriter(int sortShard)
ShardingOutputWritercreateWriter in class ShardingOutputWriter<K,V,com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V>>sortShard - Implementations should not assume numbers provided are either in-order or
continuous.protected Map<Integer,com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V>> getShardsToWriterMap()
getShardsToWriterMap in class ShardingOutputWriter<K,V,com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V>>public long estimateMemoryRequirement()
OutputWriterestimateMemoryRequirement in class ShardingOutputWriter<K,V,com.google.appengine.tools.mapreduce.impl.GoogleCloudStorageMapOutputWriter.MapOutputWriter<K,V>>Copyright © 2015 Google. All rights reserved.