public final class GoogleCloudStorageLevelDbInput extends Input<ByteBuffer>
LevelDbOutput
to files in
Google Cloud Storage.Constructor and Description |
---|
GoogleCloudStorageLevelDbInput(GoogleCloudStorageFileSet files) |
GoogleCloudStorageLevelDbInput(GoogleCloudStorageFileSet files,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
List<InputReader<ByteBuffer>> |
createReaders()
Returns a list of readers for this input.
|
getContext
public GoogleCloudStorageLevelDbInput(GoogleCloudStorageFileSet files)
public GoogleCloudStorageLevelDbInput(GoogleCloudStorageFileSet files, int bufferSize)
files
- The set of files to create readers for. One reader per file.bufferSize
- The size of the buffer used for each file.public List<InputReader<ByteBuffer>> createReaders()
Input
Input
'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.createReaders
in class Input<ByteBuffer>
Copyright © 2015 Google. All rights reserved.