public class SampleInputSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
SampleInputSplit()
Constructor for reflection
|
SampleInputSplit(int num)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
String[] |
getLocations() |
int |
getNum() |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public SampleInputSplit()
public SampleInputSplit(int num)
num - numberpublic int getNum()
public long getLength()
throws IOException,
InterruptedException
getLength in class org.apache.hadoop.mapreduce.InputSplitIOExceptionInterruptedExceptionpublic String[] getLocations() throws IOException, InterruptedException
getLocations in class org.apache.hadoop.mapreduce.InputSplitIOExceptionInterruptedExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2013-2014. All Rights Reserved.