org.apache.hadoop.mapred
Class MultiFileSplit
java.lang.Object
org.apache.hadoop.mapred.lib.CombineFileSplit
org.apache.hadoop.mapred.MultiFileSplit
- All Implemented Interfaces:
- Writable, InputSplit
Deprecated. Use CombineFileSplit instead
@Deprecated
public class MultiFileSplit
- extends CombineFileSplit
A sub-collection of input files. Unlike FileSplit, MultiFileSplit
class does not represent a split of a file, but a split of input files
into smaller sets. The atomic unit of split is a file.
MultiFileSplit can be used to implement RecordReader's, with
reading one record per file.
- See Also:
FileSplit,
MultiFileInputFormat
|
Method Summary |
java.lang.String[] |
getLocations()
Deprecated. Returns all the Paths where this input-split resides |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class org.apache.hadoop.mapred.lib.CombineFileSplit |
getJob, getLength, getLength, getLengths, getNumPaths, getOffset, getPath, getPaths, getStartOffsets, readFields, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MultiFileSplit
public MultiFileSplit(JobConf job,
Path[] files,
long[] lengths)
- Deprecated.
getLocations
public java.lang.String[] getLocations()
throws java.io.IOException
- Deprecated.
- Description copied from class:
CombineFileSplit
- Returns all the Paths where this input-split resides
- Specified by:
getLocations in interface InputSplit- Overrides:
getLocations in class CombineFileSplit
- Returns:
- list of hostnames where data of the
InputSplit is
located as an array of Strings.
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Deprecated.
- Overrides:
toString in class CombineFileSplit
Copyright © 2009 The Apache Software Foundation