Class RecentQueriesReport


  • public class RecentQueriesReport
    extends Report
    RecentQueriesReport returns a list of the most recent queries.
    • Constructor Detail

      • RecentQueriesReport

        public RecentQueriesReport​(String dataPath)
        Creates a new report.
        Parameters:
        dataPath - path where query statistics are stored.
    • 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:
        • Recent query String
        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.
      • 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.