|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.indexing.SimpleXMLCollection
public class SimpleXMLCollection
Initial implementation of a class that generates a Collection with Documents from a series of XML files.
Properties:
| Field Summary | |
|---|---|
static java.lang.String |
ELEMENT_ATTR_SEPARATOR
|
static int |
tokenMaximumLength
|
| Constructor Summary | |
|---|---|
SimpleXMLCollection()
|
|
SimpleXMLCollection(java.lang.String CollectionSpecFilename,
java.lang.String BlacklistSpecFilename)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the collection, any files that may be open. |
boolean |
endOfCollection()
Returns true if the end of the collection has been reached |
java.lang.String |
getDocid()
Get the String document identifier of the current document. |
Document |
getDocument()
Get the document object representing the current document. |
static void |
main(java.lang.String[] args)
|
boolean |
nextDocument()
Move the collection to the start of the next document. |
void |
reset()
Resets the Collection iterator to the start of the collection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ELEMENT_ATTR_SEPARATOR
public static final int tokenMaximumLength
| Constructor Detail |
|---|
public SimpleXMLCollection()
public SimpleXMLCollection(java.lang.String CollectionSpecFilename,
java.lang.String BlacklistSpecFilename)
| Method Detail |
|---|
public void close()
Collection
close in interface Collectionpublic boolean endOfCollection()
Collection
endOfCollection in interface Collectionpublic java.lang.String getDocid()
Collection
getDocid in interface Collectionpublic boolean nextDocument()
Collection
nextDocument in interface Collectionpublic Document getDocument()
Collection
getDocument in interface Collectionpublic void reset()
Collection
reset in interface Collectionpublic static void main(java.lang.String[] args)
|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||