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, insert
protected 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 LexiconMap
lexiconStream
- The lexicon output stream to store to.IOException
public void clear()
LexiconMap
clear
in class LexiconMap
Terrier 4.0. Copyright © 2004-2014 University of Glasgow