public class GoogleCloudStorageMergeInput extends Input<KeyValue<ByteBuffer,Iterator<ByteBuffer>>>
KeyValue values in LevelDb format. To maintain the sorted order a
MergingReader is used.
(Note the returned sequence will go backwards, seecreateReaders())| Constructor and Description |
|---|
GoogleCloudStorageMergeInput(FilesByShard files,
int mergeFanin) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends InputReader<KeyValue<ByteBuffer,Iterator<ByteBuffer>>>> |
createReaders()
Creates multiple merging readers for each shard using
createReaderForShard(com.google.appengine.tools.mapreduce.Marshaller<com.google.appengine.tools.mapreduce.KeyValue<java.nio.ByteBuffer, ? extends java.lang.Iterable<java.nio.ByteBuffer>>>, com.google.appengine.tools.mapreduce.GoogleCloudStorageFileSet) below. |
getContextpublic GoogleCloudStorageMergeInput(FilesByShard files, int mergeFanin)
public List<? extends InputReader<KeyValue<ByteBuffer,Iterator<ByteBuffer>>>> createReaders()
createReaderForShard(com.google.appengine.tools.mapreduce.Marshaller<com.google.appengine.tools.mapreduce.KeyValue<java.nio.ByteBuffer, ? extends java.lang.Iterable<java.nio.ByteBuffer>>>, com.google.appengine.tools.mapreduce.GoogleCloudStorageFileSet) below.
These are combined into a single reader via concatenation. The resulting input stream will be
in order except when the input switches from one merging reader to the next the key will very
likely go backwards.createReaders in class Input<KeyValue<ByteBuffer,Iterator<ByteBuffer>>>Copyright © 2015 Google. All rights reserved.