org.terrier.structures.indexing.singlepass
Class BlockFieldPosting

java.lang.Object
  extended by org.terrier.structures.indexing.singlepass.Posting
      extended by org.terrier.structures.indexing.singlepass.BlockPosting
          extended by org.terrier.structures.indexing.singlepass.BlockFieldPosting

public class BlockFieldPosting
extends BlockPosting

Class representing a posting list in memory containing fields and block iformation. It keeps the information for tf, df, field and the sequence [doc, idf, bockNo [blockId]]

Author:
Roi Blanco

Field Summary
 
Fields inherited from class org.terrier.structures.indexing.singlepass.Posting
docIds, lastInt, Nt, TF
 
Constructor Summary
BlockFieldPosting()
           
 
Method Summary
 int insert(int doc, int freq, int[] fieldFreqs, int[] blockids)
          Writes the document to the MemorySBOS
 int writeFirstDoc(int doc, int frequency, int[] fieldFreqs, int[] blockids)
          Writes out the first document to the MemorySBOS.
 
Methods inherited from class org.terrier.structures.indexing.singlepass.BlockPosting
insert, writeFirstDoc
 
Methods inherited from class org.terrier.structures.indexing.singlepass.Posting
getDocF, getDocs, getSize, getTF, insert, setDocF, setDocs, setTF, writeFirstDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockFieldPosting

public BlockFieldPosting()
Method Detail

writeFirstDoc

public int writeFirstDoc(int doc,
                         int frequency,
                         int[] fieldFreqs,
                         int[] blockids)
                  throws java.io.IOException
Writes out the first document to the MemorySBOS.

Throws:
java.io.IOException

insert

public int insert(int doc,
                  int freq,
                  int[] fieldFreqs,
                  int[] blockids)
           throws java.io.IOException
Writes the document to the MemorySBOS

Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow