Package com.day.crx.statistics.result
Class ResultSelected
java.lang.Object
com.day.crx.statistics.Entry
com.day.crx.statistics.result.ResultSelected
ResultSelected...-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the property that contains the average position of a selected result.static final StringName of the property that contains the count.static final StringName of the property that contains the recent queries that lead to this result.static final StringName of the property that contains the rolling month count.static final StringName of the property that contains the rolling week count. -
Constructor Summary
ConstructorsConstructorDescriptionResultSelected(String pathPrefix, String path, long position, String query) Creates a newResultSelectedinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidWrites the statistics to the passed node.Methods inherited from class com.day.crx.statistics.Entry
getPath, getPathPrefix, getTimestamp, setPathPrefix, setTimestamp, write
-
Field Details
-
COUNT
Name of the property that contains the count.- See Also:
-
ROLLING_WEEK_COUNT
Name of the property that contains the rolling week count.- See Also:
-
ROLLING_MONTH_COUNT
Name of the property that contains the rolling month count.- See Also:
-
AVG_POSITION
Name of the property that contains the average position of a selected result.- See Also:
-
QUERIES
Name of the property that contains the recent queries that lead to this result.- See Also:
-
-
Constructor Details
-
ResultSelected
Creates a newResultSelectedinstance.- Parameters:
pathPrefix- the location where the query information will be stored.path- the path of the selected result.position- the position of the result.query- the query that lead to this result.
-
-
Method Details
-
write
Writes the statistics to the passed node.- Overrides:
writein classEntry- Parameters:
node- the node where to write the statistics.- Throws:
RepositoryException- if an error occurs while writing.
-
getResultPath
- Returns:
- the path of the result node.
-