|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for abstracting from different XML-based IR engines (e.g. the XML PIRE extension, HyREX). This interface only supports the retrieval part.
| Method Summary | |
void |
close()
Closes the retriever, and optionally frees used system resources (e.g. closes a network connection). |
org.w3c.dom.Document |
getDocument(ProbDoc doc)
Returns the full XML document. |
org.w3c.dom.Document |
getDocument(java.lang.String docID)
Returns the full XML document. |
java.util.List |
getDocuments(java.util.List result)
Returns the full XML documents. |
java.util.List |
getResult(Query query)
Returns result for the specified query. |
java.util.List |
getResultSummaries(Query query)
Returns a summarised result for the specified query. |
Schema |
getSchema()
Returns the schema used by this retriever. |
java.util.List |
getSummaries(java.util.List result)
Returns summaries of the XML documents. |
org.w3c.dom.Document |
getSummary(ProbDoc doc)
Returns a summary of the XML document. |
org.w3c.dom.Document |
getSummary(java.lang.String docID)
Returns a summary of the XML document. |
| Method Detail |
public Schema getSchema()
public java.util.List getResult(Query query)
throws UnsupportedQueryException,
IndexException
query - XIRQL query
UnsupportedQueryException
IndexException
public java.util.List getResultSummaries(Query query)
throws UnsupportedQueryException,
IndexException,
DocumentNotFoundException
query - XIRQL query
UnsupportedQueryException
IndexException
DocumentNotFoundException
public org.w3c.dom.Document getSummary(java.lang.String docID)
throws DocumentNotFoundException
docID - document id
DocumentNotFoundException
public org.w3c.dom.Document getSummary(ProbDoc doc)
throws DocumentNotFoundException
doc - document descriptor
DocumentNotFoundException
public java.util.List getSummaries(java.util.List result)
throws DocumentNotFoundException
result - list of ProbDoc instances
DocumentNotFoundException
public org.w3c.dom.Document getDocument(java.lang.String docID)
throws DocumentNotFoundException
docID - document id
DocumentNotFoundException
public org.w3c.dom.Document getDocument(ProbDoc doc)
throws DocumentNotFoundException
doc - document descriptor
DocumentNotFoundException
public java.util.List getDocuments(java.util.List result)
throws DocumentNotFoundException
result - list of ProbDoc instances
DocumentNotFoundException
public void close()
throws IndexException
IndexException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||