|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
info.ephyra.search.searchers.Searcher
info.ephyra.search.searchers.KnowledgeMiner
public abstract class KnowledgeMiner
A KnowledgeMiner deploys a document retrieval system to
search an unstructured knowledge source, e.g. Google to search the World Wide
Web.
It runs as a separate thread, so several queries can be performed in parallel.
This class extends the class Searcher and is abstract.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected int |
firstResult
The hit position of the first result to be fetched. |
protected int |
maxResults
The maximum number of results to be fetched. |
| Fields inherited from class info.ephyra.search.searchers.Searcher |
|---|
query, results |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
KnowledgeMiner()
|
|
| Method Summary | |
|---|---|
abstract KnowledgeMiner |
getCopy()
Returns a new instance of the KnowledgeMiner. |
protected abstract int |
getMaxResultsPerQuery()
Returns the maximum number of search results per query. |
protected abstract int |
getMaxResultsTotal()
Returns the maximum total number of search results. |
protected Result[] |
getResults(java.lang.String[] passages,
java.lang.String[] docIDs,
boolean isHtml)
Creates Result objects form an array of text passages and
document IDs. |
protected Result[] |
getResults(java.lang.String[] passages,
java.lang.String[] docIDs,
java.lang.String[] cacheIDs,
boolean isHtml)
Creates Result objects form an array of text passages,
document IDs and IDs of cached documents. |
void |
start(Query query)
Creates [MAX_RESULTS_TOTAL / MAX_RESULTS_PERQUERY]
threads that fetch up to MAX_RESULTS_TOTAL results. |
protected void |
start(Query query,
int firstResult)
Sets the query, the hit position of the first result and the number of results to be fetched and starts the thread. |
| Methods inherited from class info.ephyra.search.searchers.Searcher |
|---|
doSearch, run |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int firstResult
protected int maxResults
| Constructor Detail |
|---|
public KnowledgeMiner()
| Method Detail |
|---|
protected abstract int getMaxResultsTotal()
protected abstract int getMaxResultsPerQuery()
protected Result[] getResults(java.lang.String[] passages,
java.lang.String[] docIDs,
boolean isHtml)
Result objects form an array of text passages and
document IDs.
passages - text passagesdocIDs - IDs of the documents the text passages are fromisHtml - flag indicating that the passages are HTML code
Result objects
protected Result[] getResults(java.lang.String[] passages,
java.lang.String[] docIDs,
java.lang.String[] cacheIDs,
boolean isHtml)
Result objects form an array of text passages,
document IDs and IDs of cached documents.
passages - text passagesdocIDs - IDs of the documents the text passages are fromcacheIDs - IDs of the documents in the search engine cacheisHtml - flag indicating that the passages are HTML code
Result objects
protected void start(Query query,
int firstResult)
Sets the query, the hit position of the first result and the number of results to be fetched and starts the thread.
This method should be used instead of the inherited
start() method without arguments.
query - Query objectfirstResult - hit position of the first resultpublic abstract KnowledgeMiner getCopy()
Returns a new instance of the KnowledgeMiner. A new
instance is created for each query.
It does not necessarily return an exact copy of the current instance.
KnowledgeMinerpublic void start(Query query)
Creates [MAX_RESULTS_TOTAL / MAX_RESULTS_PERQUERY]
threads that fetch up to MAX_RESULTS_TOTAL results.
This method should be used instead of the inherited
start() method without arguments.
query - Query object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||