org.terrier.structures.indexing.singlepass.hadoop
Class SplitAwareWrapper<T>
java.lang.Object
org.terrier.utility.Wrapper<T>
org.terrier.structures.indexing.singlepass.hadoop.SplitAwareWrapper<T>
- Type Parameters:
T
-
public class SplitAwareWrapper<T>
- extends Wrapper<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).
- Author:
- Richard McCreadie
Fields inherited from class org.terrier.utility.Wrapper |
o |
Constructor Summary |
SplitAwareWrapper(int index)
Constructs an instance of the SplitAwareWrapper. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
splitIndex
protected int splitIndex
SplitAwareWrapper
public SplitAwareWrapper(int index)
- Constructs an instance of the SplitAwareWrapper.
- Parameters:
index
-
getSplitIndex
public int getSplitIndex()
- Get the index for this split
setSplitIndex
public void setSplitIndex(int index)
- Sets the index for this split
Terrier 3.6. Copyright © 2004-2011 University of Glasgow