public class MostPopularResultsReport extends Report
MostPopularResultsReport
implements a report that returns the
most popular results in a given period.Constructor and Description |
---|
MostPopularResultsReport(String dataPath)
Creates a new
MostPopularResultsReport . |
Modifier and Type | Method and Description |
---|---|
long |
getDate() |
Iterator |
getResult(Session session)
Runs the report and returns a result iterator over
Object[]
instances. |
int |
getSize() |
void |
setDate(long date) |
void |
setSize(int size) |
public MostPopularResultsReport(String dataPath)
MostPopularResultsReport
.dataPath
- the path where the results statistics are stored.public Iterator getResult(Session session) throws RepositoryException
Object[]
instances.
Returns result rows with the following objects:
String
, which indicates the monthLong
count (how may times a result was selected)String[]
with recent queries that lead to this result.getResult
in class Report
session
- the session giving access to the workspace.Object[]
results.RepositoryException
- if an error occurs while reading from the
repository.public int getSize()
public void setSize(int size)
size
- the maximum number of results to return.public void setDate(long date)
date
- the report covers the month as indicated by
date
.public long getDate()
date
.Copyright © 2010 - 2020 Adobe. All Rights Reserved