|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.reporting.TopQueryReporter
Reporting process that builds a sorted list of the "top" queries based on Date, number of hits, number of tries, etc.
Reporter uses a IQueryResultSetReader
to read a set of queries from a persistent store (Database or file).
Reporter can use an IQueryFormatter to format each
individual query or an IQueryResultSetFormatter
( for example a QueryResultSetChartFormatter) to
format a set of queries.
An optional DateTimePeriod can be used to restrict the
report to a set time period.
<JobProcess processClass="com.raritantechnologies.searchApp.reporting.TopQueryReporter"
numberOfRows="10"
sortBy="DATE|RESULTS|QUERIES|CURRENT_RESULTS|TIME"
sortDir="asc|desc"
appendCounts="true|false"
outputFileLocation="[ some path to put file ]"
outputFileFormat="HTML_PAGE/HTML_TABLE/TEXT/XML"
searchSources="optional search sources to use" >
<QueryResultSetReader class="[some IQueryResultSetReader class]" >
<!-- QueryResultSetReader params . . . -->
</QueryResultSetReader>
<RowHeader></RowHeader>
<RowTrailer></RowTrailer>
<QueryFormatter class="com.raritantechnologies.searchApp.query.HyperlinkQueryFormatter"
host="/" action="somePage.jsp" label="some label" >
</QueryFormatter>
<!-- OR - use an IQueryResultSetFormatter -->
<QuerySetFormatter class="[implementation of IQueryResultSetFormatter]" >
</QuerySetFormatter>
<!-- Optional time series: will get results for set of specified days. -->
<TimeSeries>
<DateTimePeriod period="last 1 day" />
<DateTimePeriod period="1 to 7 days ago" />
<DateTimePeriod period="1 to 4 weeks ago" />
<DateTimePeriod period="1 to 12 months ago" />
<DateSearchField name="from" dateFieldID="" dateOpField="MOD_" greaterThanOp="GTE" />
</TimeSeries>
</JobProcess>
| Constructor Summary | |
TopQueryReporter()
|
|
TopQueryReporter(java.lang.String outputFormat,
IReporter reporter)
|
|
| Method Summary | |
void |
executeJob(RaritanPageContext rpc)
|
void |
executeJob(java.lang.String[] args)
Runs the Top Query reporting process. |
void |
executeJob(java.lang.String sessionID,
IReporter reporter,
SourceLoginInfo[] sources,
OrderedMap searchParams,
java.lang.String[] args)
|
java.lang.String |
getConfigurationXML()
|
IReporter |
getReporter()
returns the IReporter used by this reporting process. |
protected java.lang.String |
getRowHeader()
|
protected java.lang.String |
getRowTrailer()
|
SourceLoginInfo[] |
getSearchSources()
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
setReporter(IReporter reporter)
sets the Reporter to use for data output handling. |
void |
setSearchParams(OrderedMap searchParams)
|
void |
setSearchSources(SourceLoginInfo[] sources)
|
void |
setSessionID(java.lang.String sessionID)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TopQueryReporter()
public TopQueryReporter(java.lang.String outputFormat,
IReporter reporter)
| Method Detail |
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IJobProcesspublic void executeJob(RaritanPageContext rpc)
executeJob in interface IJobProcesspublic void executeJob(java.lang.String[] args)
executeJob in interface IJobProcess
public void executeJob(java.lang.String sessionID,
IReporter reporter,
SourceLoginInfo[] sources,
OrderedMap searchParams,
java.lang.String[] args)
executeJob in interface IReportingProcessprotected java.lang.String getRowHeader()
protected java.lang.String getRowTrailer()
public void setReporter(IReporter reporter)
IReportingProcess
setReporter in interface IReportingProcessreporter - The IReporter object that will handle data saving etc.public IReporter getReporter()
IReportingProcess
getReporter in interface IReportingProcesspublic void setSearchSources(SourceLoginInfo[] sources)
setSearchSources in interface IReportingProcesspublic SourceLoginInfo[] getSearchSources()
getSearchSources in interface IReportingProcesspublic void setSearchParams(OrderedMap searchParams)
setSearchParams in interface IReportingProcesspublic void setSessionID(java.lang.String sessionID)
setSessionID in interface IReportingProcesspublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IJobProcess
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||