public class MultiLexicon extends Lexicon<String>
Properties
| Constructor and Description | 
|---|
| MultiLexicon(Lexicon<String>[] lexicons,
            int[] numTerms)constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Not implemented. | 
| Lexicon<String> | getIthLexicon(int index) | 
| Map.Entry<String,LexiconEntry> | getIthLexiconEntry(int index)This is an invalid method since a lexicon entry can appear in any number of
 lexicons. | 
| Map.Entry<String,LexiconEntry> | getLexiconEntry(int termid)Get the term and LexiconEntry (contains statistics and a pointer) for
 a given term id. | 
| Map.Entry<String,LexiconEntry> | getLexiconEntry(int termid,
               int shard)This is an extra lexicon entry method for fast lookups of LexiconEntry's
 by term id. | 
| LexiconEntry | getLexiconEntry(String term)Get the LexiconEntry (contains statistics and a pointer) for the given term. | 
| Iterator<Map.Entry<String,LexiconEntry>> | getLexiconEntryRange(String from,
                    String to)Returns an iterator over a set of LexiconEntries within a range of
 entries in the lexicon. | 
| Iterator<Map.Entry<String,LexiconEntry>> | iterator()Not implemented. | 
| int | numberOfEntries()Return the number of entries in the lexicon | 
public int numberOfEntries()
numberOfEntries in class Lexicon<String>public LexiconEntry getLexiconEntry(String term)
getLexiconEntry in class Lexicon<String>term - key to lookup the lexicon withpublic Map.Entry<String,LexiconEntry> getLexiconEntry(int termid)
getLexiconEntry in class Lexicon<String>termid - the term id to lookup in the lexiconpublic Map.Entry<String,LexiconEntry> getLexiconEntry(int termid, int shard)
public Map.Entry<String,LexiconEntry> getIthLexiconEntry(int index)
getIthLexiconEntry in class Lexicon<String>index - the entry number to lookup in the lexiconpublic Iterator<Map.Entry<String,LexiconEntry>> iterator()
public void close()
           throws IOException
IOExceptionpublic Iterator<Map.Entry<String,LexiconEntry>> getLexiconEntryRange(String from, String to)
LexicongetLexiconEntryRange in class Lexicon<String>from - low endpoint term in the subset, inclusive.to - high endpoint term in the subset, exclusive.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow