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.
|
String[] |
getLocations() |
org.apache.hadoop.fs.Path |
getShardDirectoryAndPattern()
Accessor for shardDirectoryAndPattern.
|
void |
readFields(DataInput in) |
String |
toString() |
void |
write(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.InputSplit
public String[] getLocations() throws IOException
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2020. All rights reserved.