uk.ac.gla.terrier.structures.indexing.singlepass
Class FieldsMemoryPostings
java.lang.Object
  
uk.ac.gla.terrier.structures.indexing.singlepass.MemoryPostings
      
uk.ac.gla.terrier.structures.indexing.singlepass.FieldsMemoryPostings
public class FieldsMemoryPostings
- extends MemoryPostings
 
Class for handling posting lists containing field information in memory while indexing.
- Author:
 
  - Roi Blanco
 
 
| 
Method Summary | 
 void | 
add(java.lang.String term,
    int doc,
    int frequency,
    int fieldScore)
 
          Adds an occurrence of a term in a document to the posting in memory. | 
 void | 
addTerms(DocumentPostingList docPostings,
         int docid)
 
          Add the terms in a DocumentPostingList to the postings in memory. | 
 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FieldsMemoryPostings
public FieldsMemoryPostings()
addTerms
public void addTerms(DocumentPostingList docPostings,
                     int docid)
              throws java.io.IOException
- Description copied from class: 
MemoryPostings 
- Add the terms in a DocumentPostingList to the postings in memory.
- Overrides:
 addTerms in class MemoryPostings
 
- Parameters:
 docPostings - DocumentPostingList containing the term information for the denoted document.docid - Current document Identifier.
- Throws:
 java.io.IOException - if an I/O error occurs.
 
 
add
public void add(java.lang.String term,
                int doc,
                int frequency,
                int fieldScore)
         throws java.io.IOException
- Adds an occurrence of a term in a document to the posting in memory.
- Parameters:
 term - String representing the term.doc - int containing the document identifier.frequency - int containing the frequency of the term in the document.fieldScore - int containing the field score for the term in the document.
- Throws:
 java.io.IOException - if an I/O error occurs.
 
 
Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow