Package com.day.crx.statistics.result
Class ResultSelected
- java.lang.Object
-
- com.day.crx.statistics.Entry
-
- com.day.crx.statistics.result.ResultSelected
-
public class ResultSelected extends Entry
ResultSelected
...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AVG_POSITION
Name of the property that contains the average position of a selected result.static java.lang.String
COUNT
Name of the property that contains the count.static java.lang.String
QUERIES
Name of the property that contains the recent queries that lead to this result.static java.lang.String
ROLLING_MONTH_COUNT
Name of the property that contains the rolling month count.static java.lang.String
ROLLING_WEEK_COUNT
Name of the property that contains the rolling week count.
-
Constructor Summary
Constructors Constructor Description ResultSelected(java.lang.String pathPrefix, java.lang.String path, long position, java.lang.String query)
Creates a newResultSelected
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResultPath()
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
-
-
-
-
Field Detail
-
COUNT
public static final java.lang.String COUNT
Name of the property that contains the count.- See Also:
- Constant Field Values
-
ROLLING_WEEK_COUNT
public static final java.lang.String ROLLING_WEEK_COUNT
Name of the property that contains the rolling week count.- See Also:
- Constant Field Values
-
ROLLING_MONTH_COUNT
public static final java.lang.String ROLLING_MONTH_COUNT
Name of the property that contains the rolling month count.- See Also:
- Constant Field Values
-
AVG_POSITION
public static final java.lang.String AVG_POSITION
Name of the property that contains the average position of a selected result.- See Also:
- Constant Field Values
-
QUERIES
public static final java.lang.String QUERIES
Name of the property that contains the recent queries that lead to this result.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResultSelected
public ResultSelected(java.lang.String pathPrefix, java.lang.String path, long position, java.lang.String query)
Creates a newResultSelected
instance.- 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 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.
-
getResultPath
public java.lang.String getResultPath()
- Returns:
- the path of the result node.
-
-