org.terrier.structures.indexing.singlepass
Class BlockFieldPosting
java.lang.Object
org.terrier.structures.indexing.singlepass.Posting
org.terrier.structures.indexing.singlepass.BlockPosting
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockFieldPosting
public BlockFieldPosting()
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