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.InputSplit
java.io.IOException
java.lang.InterruptedException
public java.lang.String[] getLocations() throws java.io.IOException, java.lang.InterruptedException
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
java.io.IOException
java.lang.InterruptedException
public TokenWritable getTokenWritable()
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException