Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures.indexing.singlepass
Class SimplePostingInRun

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.singlepass.PostingInRun
      extended by uk.ac.gla.terrier.structures.indexing.singlepass.SimplePostingInRun
Direct Known Subclasses:
BlockPostingInRun, FieldPostingInRun

public class SimplePostingInRun
extends PostingInRun

Class holding the information for a posting list read from a previously written run at disk. Used in the merging phase of the Single pass inversion method. This class knows how to append itself to a BitOut and it represents the simpler class of posting (TF, df, [docid, tf])

Author:
Roi Blanco

Constructor Summary
SimplePostingInRun()
          Constructor for the class.
 
Method Summary
 int append(BitOut bos, int last, int runShift)
          Writes the document data of this posting to a BitOut It encodes the data with the right compression methods.
 
Methods inherited from class uk.ac.gla.terrier.structures.indexing.singlepass.PostingInRun
append, getDf, getTerm, getTF, setDf, setPostingSource, setTerm, setTF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePostingInRun

public SimplePostingInRun()
Constructor for the class.

Method Detail

append

public int append(BitOut bos,
                  int last,
                  int runShift)
           throws java.io.IOException
Writes the document data of this posting to a BitOut It encodes the data with the right compression methods. The stream is written as d1, idf(d1) , d2 - d1, idf(d2) etc.

Specified by:
append in class PostingInRun
Parameters:
bos - BitOut to be written.
last - int representing the last document written in timport uk.ac.gla.terrier.structures.indexing.singlepass.RunReader;his posting.
Returns:
The last posting written.
Throws:
java.io.IOException

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow