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, maxtfs, 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,
TermCodes termCodes)
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, TermCodes termCodes) throws IOException
storeToStream
in class LexiconMap
lexiconStream
- The lexicon output stream to store to.IOException
public void clear()
LexiconMap
clear
in class LexiconMap
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow