Package com.day.crx.statistics.result
Class RelatedQueriesReport
- java.lang.Object
-
- com.day.crx.statistics.Report
-
- com.day.crx.statistics.result.RelatedQueriesReport
-
public class RelatedQueriesReport extends Report
RelatedQueriesReportreturns a list of related queries.
-
-
Constructor Summary
Constructors Constructor Description RelatedQueriesReport(String dataPath, String query)Creates a new report.RelatedQueriesReport(String dataPath, String query, boolean traversalOk)Creates a new report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IteratorgetResult(Session session)Runs the report and returns a result iterator overObject[]instances.intgetSize()voidsetSize(int size)
-
-
-
Method Detail
-
getResult
public Iterator getResult(Session session) throws RepositoryException
Runs the report and returns a result iterator overObject[]instances. Returns result rows with the following objects:- Related query
String
- 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.
- Related query
-
getSize
public int getSize()
- Returns:
- the maximum number of queries to return.
-
setSize
public void setSize(int size)
- Parameters:
size- the maximum number of queries to return.
-
-