Package com.day.crx.statistics.result
Class MostPopularResultsReport
java.lang.Object
com.day.crx.statistics.Report
com.day.crx.statistics.result.MostPopularResultsReport
MostPopularResultsReport implements a report that returns the
most popular results in a given period.-
Constructor Summary
ConstructorsConstructorDescriptionMostPopularResultsReport(String dataPath) Creates a newMostPopularResultsReport. -
Method Summary
-
Constructor Details
-
MostPopularResultsReport
Creates a newMostPopularResultsReport.- Parameters:
dataPath- the path where the results statistics are stored.
-
-
Method Details
-
getResult
Runs the report and returns a result iterator overObject[]instances. Returns result rows with the following objects:- Path
String, which indicates the month Longcount (how may times a result was selected)String[]with recent queries that lead to this result.
- 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.
- Path
-
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.
-
setDate
public void setDate(long date) - Parameters:
date- the report covers the month as indicated bydate.
-
getDate
public long getDate()- Returns:
- the report covers the month as indicated by
date.
-