public interface Source<T>
Source represents an input data set that is an input to one or more
MapReduce jobs.| Modifier and Type | Method and Description |
|---|---|
void |
configureSource(org.apache.hadoop.mapreduce.Job job,
int inputId)
Configure the given job to use this source as an input.
|
long |
getSize(org.apache.hadoop.conf.Configuration configuration)
Returns the number of bytes in this
Source. |
PType<T> |
getType()
Returns the
PType for this source. |
void configureSource(org.apache.hadoop.mapreduce.Job job,
int inputId)
throws IOException
job - The job to configureinputId - For a multi-input job, an identifier for this input to the jobIOExceptionlong getSize(org.apache.hadoop.conf.Configuration configuration)
Source.Copyright © 2013 The Apache Software Foundation. All Rights Reserved.