Class ResultQualityReport

  • public class ResultQualityReport
    extends Report
    ResultQualityReport returns a historical list of average positions in a query result list for a given node.
    • Constructor Detail

      • ResultQualityReport

        public ResultQualityReport​(String dataPath,
                                   String path)
        Creates a new report.
        dataPath - the location where the result statistics are stored.
        path - the path of a node.
    • 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:
        • Path String indicating the month
        • Average position as a Long
        Specified by:
        getResult in class Report
        session - the session giving access to the workspace.
        Iterator over Object results.
        RepositoryException - if an error occurs while reading from the repository.
      • getPeriod

        public int getPeriod()
        the report period in number of days.
      • setPeriod

        public void setPeriod​(int period)
        period - the report period in number of days.