public class RelatedQueriesReport extends Report
RelatedQueriesReport returns a list of related queries.| Constructor and Description |
|---|
RelatedQueriesReport(String dataPath,
String query)
Creates a new report.
|
RelatedQueriesReport(String dataPath,
String query,
boolean traversalOk)
Creates a new report.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator |
getResult(Session session)
Runs the report and returns a result iterator over
Object[]
instances. |
int |
getSize() |
void |
setSize(int size) |
public RelatedQueriesReport(String dataPath, String query)
dataPath - the path where result statistics are stored.query - the user query.public Iterator getResult(Session session) throws RepositoryException
Object[]
instances.
Returns result rows with the following objects:
StringgetResult in class Reportsession - 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 queries to return.Copyright © 2010 - 2020 Adobe. All Rights Reserved