|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.InputFormatBase
public abstract class InputFormatBase
A base class for InputFormat.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
| Constructor Summary | |
|---|---|
InputFormatBase()
|
|
| Method Summary | |
|---|---|
boolean[] |
areValidInputDirectories(FileSystem fileSys,
Path[] inputDirs)
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. |
abstract RecordReader |
getRecordReader(FileSystem fs,
FileSplit split,
JobConf job,
Reporter reporter)
Construct a RecordReader for a FileSplit. |
FileSplit[] |
getSplits(FileSystem fs,
JobConf job,
int numSplits)
Splits files returned by {#listPaths(FileSystem,JobConf) when they're too big. |
protected File[] |
listFiles(FileSystem fs,
JobConf job)
Deprecated. Call listFiles(FileSystem,JobConf) instead. |
protected Path[] |
listPaths(FileSystem fs,
JobConf job)
List input directories. |
protected void |
setMinSplitSize(long minSplitSize)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public InputFormatBase()
| Method Detail |
|---|
protected void setMinSplitSize(long minSplitSize)
public abstract RecordReader getRecordReader(FileSystem fs,
FileSplit split,
JobConf job,
Reporter reporter)
throws IOException
InputFormatRecordReader for a FileSplit.
getRecordReader in interface InputFormatfs - the FileSystemsplit - the FileSplitjob - the job that this split belongs to
RecordReader
IOException
protected File[] listFiles(FileSystem fs,
JobConf job)
throws IOException
listFiles(FileSystem,JobConf) instead.
IOException
protected Path[] listPaths(FileSystem fs,
JobConf job)
throws IOException
fs - job -
IOException - if zero items.
public boolean[] areValidInputDirectories(FileSystem fileSys,
Path[] inputDirs)
throws IOException
InputFormat
areValidInputDirectories in interface InputFormatfileSys - the file system to check for the directoriesinputDirs - the list of input directories
IOException
public FileSplit[] getSplits(FileSystem fs,
JobConf job,
int numSplits)
throws IOException
getSplits in interface InputFormatfs - the filesystem containing the files to be splitjob - the job whose input files are to be splitnumSplits - the desired number of splits
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||