T
- public class PositionAwareSplit<T extends org.apache.hadoop.mapred.InputSplit> extends Object implements org.apache.hadoop.mapred.InputSplit
Modifier and Type | Field and Description |
---|---|
protected T |
split
the wrapped split
|
protected int |
splitnum
the index of this split
|
Constructor and Description |
---|
PositionAwareSplit()
Make a new split, for use in Writable serialization
|
PositionAwareSplit(T _split,
int _splitnum)
Make a new split with the specified attributs
|
Modifier and Type | Method and Description |
---|---|
long |
getLength() |
String[] |
getLocations() |
T |
getSplit()
Get the wrapped split
|
int |
getSplitIndex()
Get the index of this split
|
void |
readFields(DataInput in) |
void |
setSplit(T _split)
Set the wrapped split
|
void |
setSplitIndex(int _splitnum)
Set the index of this split
|
void |
write(DataOutput out) |
protected T extends org.apache.hadoop.mapred.InputSplit split
protected int splitnum
public PositionAwareSplit()
public PositionAwareSplit(T _split, int _splitnum)
public int getSplitIndex()
public void setSplitIndex(int _splitnum)
_splitnum
- the splitnum to setpublic T getSplit()
public void setSplit(T _split)
_split
- the split to setpublic long getLength() throws IOException
getLength
in interface org.apache.hadoop.mapred.InputSplit
IOException
public String[] getLocations() throws IOException
getLocations
in interface org.apache.hadoop.mapred.InputSplit
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow