Class QueriesByResultReport


  • public class QueriesByResultReport
    extends Report
    QueriesByResultReport implements a report that returns queries for a given result path. The queries are grouped by the twelve most recent calendar months.
    • Constructor Detail

      • QueriesByResultReport

        public QueriesByResultReport​(String dataPath,
                                     String path)
        Creates a new report.
        Parameters:
        dataPath - the path prefix to the data.
        path - the path of the result page.
    • Method Detail

      • getResult

        public Iterator getResult​(Session session)
                           throws RepositoryException
        Runs the report and returns a result iterator over Object[] instances.

        Returns result rows with the following objects:

        • Long timestamp, which indicates the month
        • String[] with recent queries in that month, which lead to the result page.
        Specified by:
        getResult in class Report
        Parameters:
        session - the session giving access to the workspace.
        Returns:
        Iterator over Object results.
        Throws:
        RepositoryException - if an error occurs while reading from the repository.