|
||||||||||
| 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<HStoreKey,MapWritable> |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
Get the RecordReader for the given InputSplit. |
InputSplit[] |
getSplits(JobConf job,
int numSplits)
A split will be created for each HRegion of the input table |
void |
validateInput(JobConf job)
Check for validity of the input-specification for the job. |
| 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 Values| Constructor Detail |
|---|
public TableInputFormat()
| Method Detail |
|---|
public RecordReader<HStoreKey,MapWritable> getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws IOException
InputFormatRecordReader for the given InputSplit.
It is the responsibility of the RecordReader to respect
record boundaries while processing the logical split to present a
record-oriented view to the individual task.
getRecordReader in interface InputFormat<HStoreKey,MapWritable>split - the InputSplitjob - the job that this split belongs to
RecordReader
IOException
public InputSplit[] getSplits(JobConf job,
int numSplits)
throws IOException
getSplits in interface InputFormat<HStoreKey,MapWritable>job - job configuration.numSplits - the desired number of splits, a hint.
InputSplits for the job.
IOExceptionInputFormat.getSplits(org.apache.hadoop.mapred.JobConf, int)public void configure(JobConf job)
JobConfigurableJobConf.
configure in interface JobConfigurablejob - the configuration
public void validateInput(JobConf job)
throws IOException
InputFormatThis method is used to validate the input directories when a job is
submitted so that the JobClient can fail early, with an useful
error message, in case of errors. For e.g. input directory does not exist.
validateInput in interface InputFormat<HStoreKey,MapWritable>job - job configuration.
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 | |||||||||