|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.structures.indexing.LexiconMap
public class LexiconMap
This class keeps track of the total counts of terms within a bundle of documents being indexed. Internally, uses hashmaps. This class replaces the LexiconTree etc.
Properties
Constructor Summary | |
---|---|
LexiconMap()
|
Method Summary | |
---|---|
void |
clear()
Clear the lexicon map |
int |
getNumberOfNodes()
Returns the numbe of nodes in the tree. |
int |
getNumberOfPointers()
Returns the number of pointers in the tree. |
void |
insert(DocumentPostingList doc)
Inserts all the terms from a document posting into the lexicon map |
void |
insert(java.lang.String term,
int tf)
Inserts a new term in the lexicon map. |
void |
storeToStream(LexiconOutputStream lexiconStream)
Stores the lexicon tree to a lexicon stream as a sequence of entries. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LexiconMap()
Method Detail |
---|
public void clear()
public void insert(java.lang.String term, int tf)
term
- The term to be inserted.tf
- The id of the term.public void insert(DocumentPostingList doc)
doc
- The postinglist for that documentpublic void storeToStream(LexiconOutputStream lexiconStream) throws java.io.IOException
lexiconStream
- The lexicon output stream to store to.
java.io.IOException
public int getNumberOfNodes()
public int getNumberOfPointers()
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |