public class TokenInputSplit extends org.apache.hadoop.mapreduce.InputSplit implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
TokenInputSplit()
No argument constructor is required.
|
TokenInputSplit(Token token)
Create a TokenInputSplit for a token.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLength()
Get the number of bytes in the split.
|
java.lang.String[] |
getLocations()
Get the host locations of the split.
|
TokenWritable |
getTokenWritable()
Get a Writable for this split.
|
void |
readFields(java.io.DataInput in)
Unserialize the fields for this split.
|
void |
write(java.io.DataOutput out)
Serialize the fields in this split.
|
public TokenInputSplit()
public TokenInputSplit(Token token)
public long getLength() throws java.io.IOException, java.lang.InterruptedException
getLength in class org.apache.hadoop.mapreduce.InputSplitjava.io.IOExceptionjava.lang.InterruptedExceptionpublic java.lang.String[] getLocations() throws java.io.IOException, java.lang.InterruptedException
getLocations in class org.apache.hadoop.mapreduce.InputSplitjava.io.IOExceptionjava.lang.InterruptedExceptionpublic TokenWritable getTokenWritable()
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void write(java.io.DataOutput out) throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOException