K - type of intermediate keysV - type of intermediate valuespublic class GoogleCloudStorageReduceInput<K,V> extends Input<KeyValue<K,Iterator<V>>>
KeyValue of K and a list of V written LevelDb format.
KeyValuesMarshaller to unmarshall the individual records. To maintain the sorted order a
MergingReader is used.| Constructor and Description |
|---|
GoogleCloudStorageReduceInput(FilesByShard files,
Marshaller<K> keyMarshaller,
Marshaller<V> valueMarshaller) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends InputReader<KeyValue<K,Iterator<V>>>> |
createReaders()
Returns a list of readers for this input.
|
getContextpublic GoogleCloudStorageReduceInput(FilesByShard files, Marshaller<K> keyMarshaller, Marshaller<V> valueMarshaller)
public List<? extends InputReader<KeyValue<K,Iterator<V>>>> createReaders()
InputInput's
responsibility to determine an appropriate number of readers to split into.
This could be specified by the user or determined algorithmically.
The number of input readers returned determines the number of map shards.Copyright © 2015 Google. All rights reserved.