Package org.apache.hadoop.mapred
Class MultiFileSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
org.apache.hadoop.mapred.lib.CombineFileSplit
org.apache.hadoop.mapred.MultiFileSplit
- All Implemented Interfaces:
Writable,InputSplit
A sub-collection of input files. Unlike
MultiFileSplit can be used to implement
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:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.mapred.lib.CombineFileSplit
getJobMethods inherited from class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
getLength, getLength, getLengths, getNumPaths, getOffset, getPath, getPaths, getStartOffsets, readFields, writeMethods inherited from class org.apache.hadoop.mapreduce.InputSplit
getLocationInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.mapred.InputSplit
getLengthMethods inherited from interface org.apache.hadoop.io.Writable
readFields, write
-
Constructor Details
-
MultiFileSplit
-
-
Method Details
-
getLocations
Description copied from class:CombineFileSplitReturns all the Paths where this input-split resides- Specified by:
getLocationsin interfaceInputSplit- Overrides:
getLocationsin classCombineFileSplit- Returns:
- a new array of the node nodes.
- Throws:
IOException
-
toString
- Overrides:
toStringin classCombineFileSplit
-