org.terrier.structures.indexing
Class FieldLexiconMap
java.lang.Object
org.terrier.structures.indexing.LexiconMap
org.terrier.structures.indexing.FieldLexiconMap
public class FieldLexiconMap
- extends LexiconMap
class FieldLexicanMap
Field Summary |
protected gnu.trove.TObjectIntHashMap<java.lang.String>[] |
field_tfs
|
protected int |
fieldCount
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fieldCount
protected final int fieldCount
field_tfs
protected final gnu.trove.TObjectIntHashMap<java.lang.String>[] field_tfs
FieldLexiconMap
public FieldLexiconMap(int _fieldCount)
- constructor
- Parameters:
_fieldCount
-
getFieldFrequency
protected int[] getFieldFrequency(java.lang.String term)
insert
public void insert(DocumentPostingList _doc)
- Inserts all the terms from a document posting
into the lexicon map
- Overrides:
insert
in class LexiconMap
- Parameters:
_doc
- The postinglist for that document. Assumed to be a FieldDocumentPostingList.
storeToStream
public void storeToStream(LexiconOutputStream<java.lang.String> lexiconStream)
throws java.io.IOException
- Stores the lexicon tree to a lexicon stream as a sequence of entries.
The binary tree is traversed in order, by called the method
traverseAndStoreToStream.
- Overrides:
storeToStream
in class LexiconMap
- Parameters:
lexiconStream
- The lexicon output stream to store to.
- Throws:
java.io.IOException
clear
public void clear()
- Description copied from class:
LexiconMap
- Clear the lexicon map
- Overrides:
clear
in class LexiconMap
Terrier 3.5. Copyright © 2004-2011 University of Glasgow