org.terrier.structures.indexing.singlepass.hadoop
Class SplitAwareWrapper<T>

java.lang.Object
  extended by org.terrier.utility.Wrapper<T>
      extended by 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

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

splitIndex

protected int splitIndex
Constructor Detail

SplitAwareWrapper

public SplitAwareWrapper(int index)
Constructs an instance of the SplitAwareWrapper.

Parameters:
index -
Method Detail

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