|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.indexing.singlepass.hadoop.PositionAwareSplit<T>
T - public class PositionAwareSplit<T extends org.apache.hadoop.mapred.InputSplit>
An InputSplit, i.e. a subset of the input data. Notably, this implementation knows which split it is in the overall job, this way we can restore the ordering of the input later.
| Field Summary | |
|---|---|
protected T |
split
the wrapped split |
protected int |
splitnum
the index of this split |
| Constructor Summary | |
|---|---|
PositionAwareSplit()
Make a new split, for use in Writable serialization |
|
PositionAwareSplit(T _split,
int _splitnum)
Make a new split with the specified attributs |
|
| Method Summary | |
|---|---|
long |
getLength()
|
java.lang.String[] |
getLocations()
|
T |
getSplit()
Get the wrapped split |
int |
getSplitIndex()
Get the index of this split |
void |
readFields(java.io.DataInput in)
|
void |
setSplit(T _split)
Set the wrapped split |
void |
setSplitIndex(int _splitnum)
Set the index of this split |
void |
write(java.io.DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected T extends org.apache.hadoop.mapred.InputSplit split
protected int splitnum
| Constructor Detail |
|---|
public PositionAwareSplit()
public PositionAwareSplit(T _split,
int _splitnum)
| Method Detail |
|---|
public int getSplitIndex()
public void setSplitIndex(int _splitnum)
_splitnum - the splitnum to setpublic T getSplit()
public void setSplit(T _split)
_split - the split to set
public long getLength()
throws java.io.IOException
getLength in interface org.apache.hadoop.mapred.InputSplitjava.io.IOException
public java.lang.String[] getLocations()
throws java.io.IOException
getLocations in interface org.apache.hadoop.mapred.InputSplitjava.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOException
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||