Package com.day.crx.statistics.query
Class Query
- java.lang.Object
-
- com.day.crx.statistics.Entry
-
- com.day.crx.statistics.query.Query
-
public class Query extends Entry
Query
provides information about a query execution.
-
-
Constructor Summary
Constructors Constructor Description Query(java.lang.String pathPrefix, java.lang.String query, long numResults, long executionTime)
Creates a new query instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(Node node)
Writes the statistics to the passed node.-
Methods inherited from class com.day.crx.statistics.Entry
getPath, getPathPrefix, getTimestamp, setPathPrefix, setTimestamp, write
-
-
-
-
Constructor Detail
-
Query
public Query(java.lang.String pathPrefix, java.lang.String query, long numResults, long executionTime)
Creates a new query instance.- Parameters:
pathPrefix
- the location where the query information will be stored.query
- the query string as entered by the user.numResults
- the total number of results.executionTime
- the execution time of the query.
-
-
Method Detail
-
write
public void write(Node node) throws RepositoryException
Writes the statistics to the passed node.- Overrides:
write
in classEntry
- Parameters:
node
- the node where to write the statistics.- Throws:
RepositoryException
- if an error occurs while writing.
-
-