|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.wikipedia.WikipediaForwardIndex
public class WikipediaForwardIndex
Forward index for Wikipedia collections.
| Constructor Summary | |
|---|---|
WikipediaForwardIndex()
|
|
WikipediaForwardIndex(Configuration conf)
|
|
| Method Summary | |
|---|---|
String |
getCollectionPath()
Returns the base path of the collection. |
String |
getDocid(int docno)
Returns the docid, given the docno |
int |
getDocno(String docid)
Returns the docno, given the docid |
WikipediaPage |
getDocument(int docno)
Fetches the document for a given docno. |
WikipediaPage |
getDocument(String docid)
Fetches the document for a given docid. |
int |
getFirstDocno()
Returns the first docno in the collection. |
int |
getLastDocno()
Returns the last docno in the collection. |
void |
loadIndex(String indexFile,
String mappingDataFile)
Loads the index. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikipediaForwardIndex()
public WikipediaForwardIndex(Configuration conf)
| Method Detail |
|---|
public void loadIndex(String indexFile,
String mappingDataFile)
throws IOException
DocumentForwardIndex
loadIndex in interface DocumentForwardIndex<WikipediaPage>IOExceptionpublic String getCollectionPath()
DocumentForwardIndex
getCollectionPath in interface DocumentForwardIndex<WikipediaPage>public WikipediaPage getDocument(int docno)
DocumentForwardIndex
getDocument in interface DocumentForwardIndex<WikipediaPage>public WikipediaPage getDocument(String docid)
DocumentForwardIndex
getDocument in interface DocumentForwardIndex<WikipediaPage>public int getDocno(String docid)
DocumentForwardIndex
getDocno in interface DocumentForwardIndex<WikipediaPage>public String getDocid(int docno)
DocumentForwardIndex
getDocid in interface DocumentForwardIndex<WikipediaPage>public int getFirstDocno()
DocumentForwardIndex
getFirstDocno in interface DocumentForwardIndex<WikipediaPage>public int getLastDocno()
DocumentForwardIndex
getLastDocno in interface DocumentForwardIndex<WikipediaPage>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||