public class BlockDocumentPostingList extends DocumentPostingList
 Properties:
 
DocumentPostingListDocumentPostingList.postingIterator| Modifier and Type | Field and Description | 
|---|---|
| protected int | blockCountnumber of blocks in this document. | 
| protected gnu.trove.THashMap<String,gnu.trove.TIntHashSet> | term_blocksmapping term to blockids in this document | 
AVG_DOCUMENT_UNIQUE_TERMS, documentLength, occurrences| Constructor and Description | 
|---|
| BlockDocumentPostingList()Instantiate a new block document posting list. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Removes all postings from this document | 
| int[] | getBlocks(String term)return blocks | 
| int[][] | getPostings()returns the postings suitable to be written into the block direct index | 
| void | insert(String t,
      int blockId)Insert a term into this document, occurs at given block id | 
| protected IterablePosting | makePostingIterator(String[] _terms,
                   int[] termIds) | 
| void | readFields(DataInput in) | 
| void | write(DataOutput out) | 
forEachTerm, getDocumentLength, getDocumentStatistics, getFrequency, getNumberOfPointers, getPostings2, getTermId, insert, insert, termSetprotected final gnu.trove.THashMap<String,gnu.trove.TIntHashSet> term_blocks
protected int blockCount
public BlockDocumentPostingList()
public void insert(String t, int blockId)
public int[] getBlocks(String term)
term - public int[][] getPostings()
getPostings in class DocumentPostingListprotected IterablePosting makePostingIterator(String[] _terms, int[] termIds)
makePostingIterator in class DocumentPostingListpublic void clear()
DocumentPostingListclear in class DocumentPostingListpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class DocumentPostingListIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class DocumentPostingListIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow