Package com.day.crx.statistics.result
Class ResultsByQueryReport
java.lang.Object
com.day.crx.statistics.Report
com.day.crx.statistics.result.ResultsByQueryReport
ResultsByQueryReport implements a report, which returns the
result pages that were selected the most for a given query. This report
operates on the daily statistics nodes.-
Constructor Summary
ConstructorsConstructorDescriptionResultsByQueryReport(String dataPath, String query) Creates a new report.ResultsByQueryReport(String dataPath, String query, boolean traversalOk) Creates a new report. -
Method Summary
-
Constructor Details
-
ResultsByQueryReport
Creates a new report.- Parameters:
dataPath- the path prefix to the data.query- the user query.
-
ResultsByQueryReport
Creates a new report.- Parameters:
dataPath- the path prefix to the data.query- the user query.traversalOk- set to true to put "traveral ok" option in the statistics query
-
-
Method Details
-
getResult
Runs the report and returns a result iterator overObject[]instances. Returns result rows with the following objects:Stringpath of a result pathLongcount (how many times this result was picked)
- Specified by:
getResultin classReport- Parameters:
session- the session giving access to the workspace.- Returns:
- Iterator over
Objectresults. - Throws:
RepositoryException- if an error occurs while reading from the repository.
-
getSize
public int getSize()- Returns:
- the maximum number of results to return.
-
setSize
public void setSize(int size) - Parameters:
size- the maximum number of results to return.
-