|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.AbstractRetriever
de.unidu.is.retrieval.hyrex.HyREXRetriever
An retrieval interface to a HyREX server, supporting only querying a HyREX server.
| Field Summary | |
protected HyREXClient |
client
The low-level, multi-purpose HyREX client. |
| Fields inherited from class de.unidu.is.retrieval.AbstractRetriever |
schema |
| Constructor Summary | |
HyREXRetriever(java.lang.String hostname,
int port,
java.lang.String db,
java.lang.String cls)
Creates a new HyREX instance. |
|
HyREXRetriever(java.lang.String hostname,
int port,
java.lang.String db,
java.lang.String cls,
Schema schema)
Creates a new HyREX instance. |
|
| Method Summary | |
void |
close()
Closes the retriever and the corresponding HyREX connection. |
org.w3c.dom.Document |
getDocument(java.lang.String docID)
Returns the full XML document |
java.util.List |
getResult(Query query)
Returns result for the specified query. |
| Methods inherited from class de.unidu.is.retrieval.AbstractRetriever |
getDocument, getDocuments, getResultSummaries, getSchema, getSummaries, getSummary, getSummary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected HyREXClient client
| Constructor Detail |
public HyREXRetriever(java.lang.String hostname,
int port,
java.lang.String db,
java.lang.String cls)
hostname - name of the HyREX server hostport - port of the HyREX server hostdb - HyREX databasecls - HyREX class
public HyREXRetriever(java.lang.String hostname,
int port,
java.lang.String db,
java.lang.String cls,
Schema schema)
hostname - name of the HyREX server hostport - port of the HyREX server hostdb - HyREX databasecls - HyREX classschema - schema| Method Detail |
public java.util.List getResult(Query query)
throws IndexException,
UnsupportedQueryException
query - XIRQL query
IndexException
UnsupportedQueryException
public org.w3c.dom.Document getDocument(java.lang.String docID)
throws DocumentNotFoundException
docID - document id
DocumentNotFoundExceptionRetriever.getDocument(java.lang.String)
public void close()
throws IndexException
close in interface Retrieverclose in class AbstractRetrieverIndexExceptionRetriever.close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||