|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.mapred.TableInputFormat
public class TableInputFormat
Convert HBase tabular data into a format that is consumable by Map/Reduce
Field Summary | |
---|---|
static String |
COLUMN_LIST
space delimited list of columns |
Constructor Summary | |
---|---|
TableInputFormat()
|
Method Summary | |
---|---|
void |
configure(JobConf job)
Initializes a new instance from a JobConf . |
RecordReader |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
Construct a RecordReader for a FileSplit . |
InputSplit[] |
getSplits(JobConf job,
int numSplits)
A split will be created for each HRegion of the input table |
void |
validateInput(JobConf job)
Are the input directories valid? This method is used to test the input directories when a job is submitted so that the framework can fail early with a useful error message when the input directory does not exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COLUMN_LIST
for column name wildcards
,
Constant Field ValuesConstructor Detail |
---|
public TableInputFormat()
Method Detail |
---|
public RecordReader getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException
InputFormat
RecordReader
for a FileSplit
.
getRecordReader
in interface InputFormat
split
- the InputSplit
job
- the job that this split belongs to
RecordReader
IOException
public InputSplit[] getSplits(JobConf job, int numSplits) throws IOException
getSplits
in interface InputFormat
job
- the job whose input files are to be splitnumSplits
- the desired number of splits
IOException
InputFormat.getSplits(org.apache.hadoop.mapred.JobConf, int)
public void configure(JobConf job)
JobConfigurable
JobConf
.
configure
in interface JobConfigurable
job
- the configurationpublic void validateInput(JobConf job) throws IOException
InputFormat
validateInput
in interface InputFormat
job
- the job to check
InvalidInputException
- if the job does not have valid input
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |