|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.structures.indexing.LexiconMap
uk.ac.gla.terrier.structures.indexing.BlockLexiconMap
public class BlockLexiconMap
LexiconMap implementation that also keeps track of the number of blocks that a term occurrs in. This is useful for sizing the block inverted index
| Constructor Summary | |
|---|---|
BlockLexiconMap()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the lexicon map |
void |
insert(DocumentPostingList _doc)
Inserts all the terms from a document posting into the lexicon map |
void |
insert(java.lang.String term,
int tf,
int blockfreq)
Inserts a new term in the lexicon map. |
void |
storeToStream(LexiconOutputStream _lexiconStream)
Stores the lexicon map to a lexicon stream as a sequence of entries. |
| Methods inherited from class uk.ac.gla.terrier.structures.indexing.LexiconMap |
|---|
getNumberOfNodes, getNumberOfPointers, insert |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockLexiconMap()
| Method Detail |
|---|
public void insert(java.lang.String term,
int tf,
int blockfreq)
term - The term to be inserted.tf - The id of the term.public void clear()
clear in class LexiconMappublic void insert(DocumentPostingList _doc)
insert in class LexiconMap_doc - The postinglist for that document - must be a instance of BlockDocumentPostingList.
public void storeToStream(LexiconOutputStream _lexiconStream)
throws java.io.IOException
storeToStream in class LexiconMap_lexiconStream - The lexicon output stream to store to.
java.io.IOException
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||