public class MostPopular extends Object
MostPopular
holds the results and meta information from a most popular
query. Below is an example of how to iterate through the most popular list elements.
MostPopular mp = pageviewQueryManager.getMostPopular(...);
for(Iterator i = mp.getMostPopularElements().iterator(); i.hasNext();) {
MostPopularElement mpe = (MostPopularElement)i.next();
// Do something with thismost popular element
}
Constructor and Description |
---|
MostPopular() |
Modifier and Type | Method and Description |
---|---|
protected void |
addMostPopularElement(MostPopularElement mostPopularElement)
Add an most popular element,
MostPopularElement , to the list of
elements. |
int |
getListPageviews()
Returns the total number of page views for all elements in the most popular list.
|
int |
getMode()
Returns the query mode.
|
Collection |
getMostPopularElements()
Returns a
Collection of MostPopularElement objects
representing the most popular list |
int |
getResponseTime()
Returns the response time for the query execution in milliseconds
|
int |
getTotalDistinctMetaCount()
Returns the total distinct meta count, the unique number of meta field values.
|
int |
getTotalPageviews()
Returns the total number of page views for both elements
in the most popular list and those not in the list.
|
protected void |
setListPageviews(int listPageviews) |
protected void |
setMode(int mode) |
protected void |
setResponseTime(int responseTime) |
protected void |
setTotalDistinctMetaCount(int totalDistinctMetaCount) |
protected void |
setTotalPageviews(int totalPageviews) |
protected void setListPageviews(int listPageviews)
public int getListPageviews()
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
and
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL
this method will return -1
.protected void setTotalPageviews(int totalPageviews)
public int getTotalPageviews()
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
and
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL
this method will return -1
.public int getTotalDistinctMetaCount()
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
and
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL
this method will return -1
.protected void setTotalDistinctMetaCount(int totalDistinctMetaCount)
public int getMode()
protected void setMode(int mode)
protected void setResponseTime(int responseTime)
public int getResponseTime()
protected void addMostPopularElement(MostPopularElement mostPopularElement)
MostPopularElement
, to the list of
elements.mostPopularElement
- A MostPopularElement
public Collection getMostPopularElements()
Collection
of MostPopularElement
objects
representing the most popular listCollection
of MostPopularElement
objects
representing the most popular list© 1998- 2014 Escenic
Contact Escenic Support for bug submission or feature requests. For further API reference and developer documentation, see Technet. The Technet documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Escenic A/S, Sommerrogt. 13-15 Solli, 0255 Oslo, Norway.