|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReadableData<T>
Represents the contents of a data source that can be read on the cluster from within one of the tasks running as part of a Crunch pipeline.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 job
Iterable<T> read(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
throws IOException
context - The context of the task that is reading the data
IOException - If the data cannot be read
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||