public class ShardedInputSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
ShardedInputSplit()
Default constructor for dynamic-classloading deserialization.
|
ShardedInputSplit(org.apache.hadoop.fs.Path shardDirectoryAndPattern,
long estimatedNumRecords)
For creation of splits in JobClient.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLength()
Estimated number of records to read, *not* the number of bytes.
|
java.lang.String[] |
getLocations() |
org.apache.hadoop.fs.Path |
getShardDirectoryAndPattern()
Accessor for shardDirectoryAndPattern.
|
void |
readFields(java.io.DataInput in) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public ShardedInputSplit()
public ShardedInputSplit(org.apache.hadoop.fs.Path shardDirectoryAndPattern,
long estimatedNumRecords)
public org.apache.hadoop.fs.Path getShardDirectoryAndPattern()
public long getLength()
getLength in class org.apache.hadoop.mapreduce.InputSplitpublic java.lang.String[] getLocations()
throws java.io.IOException
getLocations in class org.apache.hadoop.mapreduce.InputSplitjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionCopyright © 2019. All rights reserved.