|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Activity | +--uk.org.ogsadai.client.toolkit.activity.indexedfiles.IndexedFileSearch
This activity evaluates a search activity across an indexed file or an indexed set of files within a file system data service resource.
The activity has no input and two outputs - the search results from the activity and the data output from the activity:
getStatusOutput
method can be used to obtain the search results from the activity. The search results contain the number of matching documents and, for each matching document, all fields that are stored in the index.getDataOutput
method can be used to obtain the data output from the activity. This data output specifies the location of the data that is not stored in the index.Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
private static int |
DATA_OUTPUT_INDEX Index of search data output |
private java.lang.String |
mIndexDirectory Relative path to directory containing index files |
private java.lang.String |
mQuery Search query |
private static int |
STATUS_OUTPUT_INDEX Index of search status output |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
IndexedFileSearch() Default constructor. |
|
IndexedFileSearch(java.lang.String query) Constructor. |
|
IndexedFileSearch(java.lang.String query, java.lang.String index) Constructor. |
Method Summary | |
protected java.lang.String |
generateXML() Generates the XML representing the activity. |
ActivityOutput |
getDataOutput() Gets the activity's data output. |
java.lang.String |
getIndex() Gets the relative path to the index directory. |
java.lang.String |
getQuery() Gets the query expression. |
long |
getResultCount() Gets the number of results as recorded in the search status output. |
ActivityOutput |
getSearchStatus() Gets the activity's search status output. |
void |
setIndex(java.lang.String index) Sets the relative path to the index directory. |
void |
setQuery(java.lang.String query) Sets the query expression. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final int DATA_OUTPUT_INDEX
private static final int STATUS_OUTPUT_INDEX
private java.lang.String mQuery
private java.lang.String mIndexDirectory
Constructor Detail |
public IndexedFileSearch()
public IndexedFileSearch(java.lang.String query)
query
- Query expressionjava.lang.IllegalArgumentException
- If query
is null
.public IndexedFileSearch(java.lang.String query, java.lang.String index)
query
- Query expression.index
- The index directory to search.java.lang.IllegalArgumentException
- If query
is null
.Method Detail |
public java.lang.String getQuery()
public void setQuery(java.lang.String query)
query
- Query expression.java.lang.IllegalArgumentException
- If query
is null
.public java.lang.String getIndex()
public void setIndex(java.lang.String index)
index
- The index directory to search.public ActivityOutput getDataOutput()
public ActivityOutput getSearchStatus()
public long getResultCount() throws NoActivityOutputException, DataFormatException
DataFormatException
- if the XML output data for the activity's output cannot be parsed.NoActivityOutputException
- if there is no output data or the data has not yet been processed to this output or the activity that generates this output has not yet been executed.protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |