I
- type of values produced by this inputpublic abstract class Input<I> extends Object implements Serializable
InputReader
handles reading itself.
This class is really an interface that might be evolving. In order to avoid breaking users when we change the interface, we made it an abstract class.
Constructor and Description |
---|
Input() |
Modifier and Type | Method and Description |
---|---|
abstract List<? extends InputReader<I>> |
createReaders()
Returns a list of readers for this input.
|
Context |
getContext()
Returns the current context, or null if none.
|
public Context getContext()
public abstract List<? extends InputReader<I>> createReaders() throws IOException
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.IOException
Copyright © 2015 Google. All rights reserved.