public class ArrayCollectionReader extends Object implements CollectionReader
Collection reader for reading multiple collection
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
ArrayCollectionReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addArticle(Article article) |
void |
close()
Closes the collection reader and releases all occupied resources.
|
Article |
getArticleByKey(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.
|
void |
restart()
The collection reader supports forward-only read mode.
|
void |
setArticleParser(ArticleParser parser)
Sets the article parse for the collection reader
|
int |
size()
The size of the collection.
|
boolean |
supportArticleKeyRetrieval()
if the query supports this retrieval mode, one can get articles by calling getArticleByKey method.
|
public ArticleParser getArticleParser()
CollectionReadergetArticleParser in interface CollectionReaderpublic void setArticleParser(ArticleParser parser)
CollectionReadersetArticleParser in interface CollectionReaderparser - the article parserpublic int size()
CollectionReadersize in interface CollectionReaderpublic void close()
CollectionReaderclose in interface CollectionReaderpublic Article getNextArticle()
CollectionReadergetNextArticle in interface CollectionReaderpublic Article getArticleByKey(String key)
CollectionReadergetArticleByKey in interface CollectionReaderkey - the unique entry number of the articlepublic boolean addArticle(Article article)
public boolean supportArticleKeyRetrieval()
CollectionReadersupportArticleKeyRetrieval in interface CollectionReaderpublic void restart()
CollectionReaderrestart in interface CollectionReaderCopyright © 2018 JULIE Lab, Germany. All rights reserved.