|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dragon.onlinedb.trec.AbstractTopicReader
Abstract class for TREC topic reading
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor Summary | |
AbstractTopicReader(java.lang.String topicFile)
|
|
| Method Summary | |
void |
close()
Closes the collection reader and releases all occupied resources. |
Article |
getArticleByKey(java.lang.String key)
Reads out the article according to its key |
ArticleParser |
getArticleParser()
Gets the article parser of the collection reader |
Article |
getNextArticle()
Collection readers only support forward-only read mode. |
boolean |
loadCollection(java.lang.String topicFile)
|
protected abstract java.util.ArrayList |
loadTopics(java.lang.String topicFile)
|
void |
restart()
The collection reader supports forward-only read mode. |
void |
setArticleParser(ArticleParser parser)
Sets the article parse for the collection reader |
boolean |
supportArticleKeyRetrieval()
if the query supports this retrieval mode, one can get articles by calling getArticleByKey method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractTopicReader(java.lang.String topicFile)
| Method Detail |
protected abstract java.util.ArrayList loadTopics(java.lang.String topicFile)
public boolean loadCollection(java.lang.String topicFile)
public ArticleParser getArticleParser()
CollectionReader
getArticleParser in interface CollectionReaderpublic void setArticleParser(ArticleParser parser)
CollectionReader
setArticleParser in interface CollectionReaderparser - the article parserpublic Article getNextArticle()
CollectionReader
getNextArticle in interface CollectionReaderpublic Article getArticleByKey(java.lang.String key)
CollectionReader
getArticleByKey in interface CollectionReaderkey - the unique entry number of the article
public void close()
CollectionReader
close in interface CollectionReaderpublic boolean supportArticleKeyRetrieval()
CollectionReader
supportArticleKeyRetrieval in interface CollectionReaderpublic void restart()
CollectionReader
restart in interface CollectionReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||