|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentRetrievalService
Service capable of retrieving Document
s given some Query
.
Query
Method Summary | |
---|---|
List<QueryResult> |
retrieve(Query query)
Retrieves a List of sorted QueryResult s for the given
Query . |
void |
setPath(String path)
Sets the location used to retrieve documents. |
Methods inherited from interface com.languagecomputer.api.Service |
---|
getName, setSession |
Method Detail |
---|
void setPath(String path) throws IOException
path
- The location to search for documents.
IOException
- If there is an issue accessing any I/O component
required by the DocumentRetrievalService
. Implementors
may or may not validate the path and throw an exception if it is
inaccessible.List<QueryResult> retrieve(Query query)
List
of sorted QueryResult
s for the given
Query
.
query
- The Query
to use. At least one of the query methods
must be non-null
.
List
of retrieved QueryResult
s. Will be
empty if this DocumentRetrievalService
cannot use any of
the non-null
query representations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |