I - type of values produced by this inputpublic final class UnmarshallingInput<I> extends Input<I>
Input that unmarshalls records.| Constructor and Description |
|---|
UnmarshallingInput(Input<ByteBuffer> input,
Marshaller<I> marshaller) |
| Modifier and Type | Method and Description |
|---|---|
List<InputReader<I>> |
createReaders()
Returns a list of readers for this input.
|
getContextpublic UnmarshallingInput(Input<ByteBuffer> input, Marshaller<I> marshaller)
input - The input producing values to unmarshall.marshaller - The marshaller to use for unmarshalling the input values.public List<InputReader<I>> createReaders() throws IOException
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.createReaders in class Input<I>IOExceptionCopyright © 2015 Google. All rights reserved.