|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.utility.Wrapper<T> org.terrier.structures.indexing.singlepass.hadoop.SplitAwareWrapper<T>
T
- public class SplitAwareWrapper<T>
Ironically a wrapper around a wrapper. This is used to store a document (the inner wrapper) with additional positional information about which split the document came from (outer wrapper).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.terrier.utility.Wrapper |
---|
Wrapper.IntObjectWrapper<K> |
Field Summary | |
---|---|
protected int |
splitIndex
|
Fields inherited from class org.terrier.utility.Wrapper |
---|
o |
Constructor Summary | |
---|---|
SplitAwareWrapper(int index)
Constructs an instance of the SplitAwareWrapper. |
Method Summary | |
---|---|
int |
getSplitIndex()
Get the index for this split |
void |
setSplitIndex(int index)
Sets the index for this split |
Methods inherited from class org.terrier.utility.Wrapper |
---|
createWrapper, getObject, setObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int splitIndex
Constructor Detail |
---|
public SplitAwareWrapper(int index)
index
- Method Detail |
---|
public int getSplitIndex()
public void setSplitIndex(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |