|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.pire.examples.PIREExampleUtils
Utility methods for PIRE examples.
| Constructor Summary | |
PIREExampleUtils()
|
|
| Method Summary | |
static DB |
createDB()
Creates and returns a new DB object. |
static IR |
createIR()
Creates an IR object and sets the examples/ddl.xml schema. |
static PIRE |
createPIRE()
Creates an PIRE object and sets the attributes "ti" (Text), "au" (Name) and "py" (Year). |
static Query |
getBooleanQuery()
Returns an example Boolean-style query. |
static Query |
getWSumQuery()
Returns an example weighted sum query. |
static void |
indexDocuments(PIRE ir)
Adds example documens to the PIRE index. |
static void |
indexXMLDocuments(IR ir)
Adds example documens to the IR index. |
static void |
printResult(Retriever retriever,
java.util.List result)
Prints the results to STDOUT. |
static void |
retrieveAndPrint(Retriever retriever,
Query query)
Performs retrieval w.r.t. the specified query, and prints the results to STDOUT. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PIREExampleUtils()
| Method Detail |
public static DB createDB()
public static PIRE createPIRE()
public static void indexDocuments(PIRE ir)
ir - PIRE objectpublic static IR createIR()
examples/ddl.xml schema.
public static void indexXMLDocuments(IR ir)
throws IndexException,
DocumentNotStorableException,
DocumentMismatchException
ir - IR object
IndexException
DocumentNotStorableException
DocumentMismatchException
public static void retrieveAndPrint(Retriever retriever,
Query query)
throws UnsupportedQueryException,
IndexException,
DocumentNotFoundException
retriever - retrieval objectquery - query
UnsupportedQueryException
IndexException
DocumentNotFoundException
public static void printResult(Retriever retriever,
java.util.List result)
throws DocumentNotFoundException
retriever - retrieval objectresult - result list (items are ProbDoc instances)
DocumentNotFoundExceptionpublic static Query getWSumQuery()
public static Query getBooleanQuery()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||