@InterfaceAudience.Public @InterfaceStability.Stable public class MultiFileSplit extends CombineFileSplit
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. RecordReader
's, with
reading one record per file.FileSplit
,
MultiFileInputFormat
Constructor and Description |
---|
MultiFileSplit(JobConf job,
Path[] files,
long[] lengths) |
Modifier and Type | Method and Description |
---|---|
String[] |
getLocations()
Returns all the Paths where this input-split resides
|
String |
toString() |
getJob
getLength, getLength, getLengths, getNumPaths, getOffset, getPath, getPaths, getStartOffsets, readFields, write
getLocationInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLength
readFields, write
public String[] getLocations() throws IOException
CombineFileSplit
getLocations
in interface InputSplit
getLocations
in class CombineFileSplit
IOException
public String toString()
toString
in class CombineFileSplit
Copyright © 2020 Apache Software Foundation. All rights reserved.