org.terrier.structures.indexing.singlepass
Class BlockFieldMemoryPostings

java.lang.Object
  extended by org.terrier.structures.indexing.singlepass.MemoryPostings
      extended by org.terrier.structures.indexing.singlepass.BlockMemoryPostings
          extended by org.terrier.structures.indexing.singlepass.BlockFieldMemoryPostings

public class BlockFieldMemoryPostings
extends BlockMemoryPostings

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

Author:
Roi Blanco

Field Summary
 
Fields inherited from class org.terrier.structures.indexing.singlepass.MemoryPostings
keyBytes, logger, maxSize, numPointers, postings, valueBytes
 
Constructor Summary
BlockFieldMemoryPostings()
           
 
Method Summary
 void add(java.lang.String term, int doc, int frequency, int[] fieldFrequencies, int[] blockids)
          add
 void addTerms(DocumentPostingList _docPostings, int docid)
          Add the terms in a DocumentPostingList to the postings in memory.
 
Methods inherited from class org.terrier.structures.indexing.singlepass.BlockMemoryPostings
add
 
Methods inherited from class org.terrier.structures.indexing.singlepass.MemoryPostings
add, finish, finish, getMemoryConsumption, getPointers, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockFieldMemoryPostings

public BlockFieldMemoryPostings()
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 BlockMemoryPostings
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[] fieldFrequencies,
                int[] blockids)
         throws java.io.IOException
add

Parameters:
term -
doc -
frequency -
fieldFrequencies -
blockids -
Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow