Terrier IR Platform
2.2.1

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

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.singlepass.MemoryPostings
      extended by uk.ac.gla.terrier.structures.indexing.singlepass.BlockMemoryPostings
Direct Known Subclasses:
BlockFieldMemoryPostings

public class BlockMemoryPostings
extends MemoryPostings

Class for handling posting lists containing block information in memory while indexing.

Author:
Roi Blanco

Constructor Summary
BlockMemoryPostings()
           
 
Method Summary
 void add(java.lang.String term, int doc, int frequency, int[] blocks)
          Add the specified to the term posting to the memory postings.
 void addTerms(DocumentPostingList _docPostings, int docid)
          Add the terms in a DocumentPostingList to the postings in memory.
 
Methods inherited from class uk.ac.gla.terrier.structures.indexing.singlepass.MemoryPostings
add, finish, finish, getPointers, getSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockMemoryPostings

public BlockMemoryPostings()
Method Detail

addTerms

public void addTerms(DocumentPostingList _docPostings,
                     int docid)
              throws java.io.IOException
Add the terms in a DocumentPostingList to the postings in memory.

Overrides:
addTerms in class MemoryPostings
Parameters:
_docPostings - BlockDocumentPostingList containing the posting information for one document.
docid - Document id of the indexed document
Throws:
java.io.IOException - if an I/O error occurs.

add

public void add(java.lang.String term,
                int doc,
                int frequency,
                int[] blocks)
         throws java.io.IOException
Add the specified to the term posting to the memory postings.

Parameters:
term - The String form of the term
doc - the document id of the doc
frequency - the frequency of the specified term in the document
blocks - the blockids at which this term occurs
Throws:
java.io.IOException

Terrier IR Platform
2.2.1

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