public class FieldLexiconMap extends LexiconMap
| Modifier and Type | Field and Description |
|---|---|
protected gnu.trove.TObjectIntHashMap<String>[] |
field_tfs |
protected int |
fieldCount |
BUNDLE_AVG_UNIQUE_TERMS, nts, numberOfNodes, numberOfPointers, tfs| Constructor and Description |
|---|
FieldLexiconMap(int _fieldCount)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the lexicon map
|
protected int[] |
getFieldFrequency(String term) |
void |
insert(DocumentPostingList _doc)
Inserts all the terms from a document posting
into the lexicon map
|
void |
storeToStream(LexiconOutputStream<String> lexiconStream)
Stores the lexicon tree to a lexicon stream as a sequence of entries.
|
getNumberOfNodes, getNumberOfPointers, insertprotected final int fieldCount
protected final gnu.trove.TObjectIntHashMap<String>[] field_tfs
public FieldLexiconMap(int _fieldCount)
_fieldCount - protected int[] getFieldFrequency(String term)
public void insert(DocumentPostingList _doc)
insert in class LexiconMap_doc - The postinglist for that document. Assumed to be a FieldDocumentPostingList.public void storeToStream(LexiconOutputStream<String> lexiconStream) throws IOException
storeToStream in class LexiconMaplexiconStream - The lexicon output stream to store to.IOExceptionpublic void clear()
LexiconMapclear in class LexiconMapTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow