public interface ReadableData<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.conf.Configuration conf)
Allows this instance to specify any additional configuration settings that may
be needed by the job that it is launched in.
|
Set<SourceTarget<?>> |
getSourceTargets() |
Iterable<T> |
read(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
Read the data referenced by this instance within the given context.
|
Set<SourceTarget<?>> getSourceTargets()
SourceTarget
instances that must exist before the data in
this instance can be read. Used by the planner in sequencing job processing.void configure(org.apache.hadoop.conf.Configuration conf)
conf
- The Configuration
object for the jobIterable<T> read(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context) throws IOException
context
- The context of the task that is reading the dataIOException
- If the data cannot be readCopyright © 2016 The Apache Software Foundation. All rights reserved.