public class PageviewQueryManager extends Object
PageviewQueryManager
contains all the page view query methods.
A page view is a web page that has been viewed (completely downloaded) by one visitor.
A distinct meta count is the unique number of values in the meta field, and is used
for counting unique sessions, users, msisdn or similar, depending on the type of values
logged to the 'meta' field during page view logging.
setEaeQsUrl
method.
PageviewQueryManager pqm = new PageviewQueryManager("http://server:port/analysis-qs/QueryService");
PageviewQueryManager pqm = new PageviewQueryManager();
pqm.setEaeQsUrl("http://server:port/analysis-qs/QueryService");
TimeDistributed
object, and represents a time
distributed view of the number of pageviews, distinct meta count or both, depending on the mode
parameter.
MostPopular
object, and represents a list of the
most popular objects with respect to page views or distinct meta count, depending on the mode
parameter.
Total
object, and represents the total number of
page views, total number of distinct meta count or both, depending on the mode
parameter.
Constructor and Description |
---|
PageviewQueryManager(String eaeQsUrl)
Contructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEaeQsUrl()
Returns the Query Service URL.
|
MostPopular |
getMostPopular(Date from,
Date to,
int max,
boolean includeRest,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a most popular query.
|
MostPopular |
getMostPopular(Date from,
Date to,
int max,
boolean includeRest,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode,
boolean groupByPublication)
Executes a most popular query.
|
MostPopular |
getMostPopular(int sinceHoursAgo,
int sinceMinutesAgo,
int max,
boolean includeRest,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a most popular query.
|
MostPopular |
getMostPopular(int sinceHoursAgo,
int sinceMinutesAgo,
int max,
boolean includeRest,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode,
boolean groupByPublication)
Executes a most popular query.
|
MostPopular |
getMostPopular(String from,
String to,
int max,
boolean includeRest,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a most popular query.
|
MostPopular |
getMostPopular(String from,
String to,
int max,
boolean includeRest,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode,
boolean groupByPublication)
Executes a most popular query.
|
TimeDistributed |
getTimeDistributed(Date from,
Date to,
int interval,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a time distributed query.
|
TimeDistributed |
getTimeDistributed(int objId,
Date from,
Date to,
int interval,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a time distributed query.
|
TimeDistributed |
getTimeDistributed(int objId,
int sinceHoursAgo,
int sinceMinutesAgo,
int bias,
int interval,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a time distributed query.
|
TimeDistributed |
getTimeDistributed(int sinceHoursAgo,
int sinceMinutesAgo,
int bias,
int interval,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a time distributed query.
|
TimeDistributed |
getTimeDistributed(int objId,
String from,
String to,
int interval,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a time distributed query.
|
TimeDistributed |
getTimeDistributed(String from,
String to,
int interval,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Executes a time distributed query.
|
Total |
getTotal(Date from,
Date to,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Returns the total number of page views.
|
Total |
getTotal(String from,
String to,
String[] types,
int[] contextIds,
int[] pubIds,
String[] categories,
String[] metas,
int mode)
Returns the total number of page views.
|
void |
setEaeQsUrl(String eaeQsUrl)
Sets the Query Service URL, i.e.
|
public PageviewQueryManager(String eaeQsUrl)
eaeQsUrl
- The Query Service URL, i.e. 'http://server:port/analysis-qs/QueryService'public String getEaeQsUrl()
public void setEaeQsUrl(String eaeQsUrl)
eaeQsUrl
- The Query Service URL, i.e. 'http://server:port/analysis-qs/QueryService'public TimeDistributed getTimeDistributed(Date from, Date to, int interval, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
from
- Date/time defining the start of the time periodto
- Date/time defining the end of the time periodinterval
- The length of the time distributed element in minutestypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
. If null, this will
default to com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
.TimeDistributed
Exception
public TimeDistributed getTimeDistributed(String from, String to, int interval, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
from
- Date/time defining the start of the time period - format 'yyyy-MM-dd HH:mm'to
- Date/time defining the end of the time period - format 'yyyy-MM-dd HH:mm'interval
- The length of the time distributed element in minutestypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
. If null, this will
default to com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
.TimeDistributed
Exception
public TimeDistributed getTimeDistributed(int sinceHoursAgo, int sinceMinutesAgo, int bias, int interval, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
sinceHoursAgo
- Hours ago from now when the time period should startsinceMinutesAgo
- Minutes ago from now when the time period should startbias
- Used to adjust the period in minutesinterval
- The length of the time distributed element in minutestypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
. If null, this will
default to com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
.TimeDistributed
Exception
public TimeDistributed getTimeDistributed(int objId, Date from, Date to, int interval, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
objId
- Object ID, i.e. an article ID or section IDfrom
- Date/time defining the start of the time periodto
- Date/time defining the end of the time periodinterval
- The length of the time distributed element in minutestypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
. If null, this will
default to com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
.TimeDistributed
Exception
public TimeDistributed getTimeDistributed(int objId, String from, String to, int interval, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
objId
- Object ID, i.e. an article ID or section IDfrom
- Date/time defining the start of the time period - format 'yyyy-MM-dd HH:mm'to
- Date/time defining the end of the time period - format 'yyyy-MM-dd HH:mm'interval
- The length of the time distributed element in minutestypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
. If null, this will
default to com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
.TimeDistributed
Exception
public TimeDistributed getTimeDistributed(int objId, int sinceHoursAgo, int sinceMinutesAgo, int bias, int interval, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
objId
- Object ID, i.e. an article ID or section IDsinceHoursAgo
- Hours ago from now when the time period should startsinceMinutesAgo
- Minutes ago from now when the time period should startbias
- Used to adjust the period in minutesinterval
- The length of the time distributed element in minutestypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
. If null, this will
default to com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
.TimeDistributed
Exception
public MostPopular getMostPopular(int sinceHoursAgo, int sinceMinutesAgo, int max, boolean includeRest, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
sinceHoursAgo
- Hours ago from now when the time period should startsinceMinutesAgo
- Minutes ago from now when the time period should startmax
- Maximum number of elements in listincludeRest
- Wether or not to include the remaining objects as one elementtypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.MostPopular
Exception
public MostPopular getMostPopular(Date from, Date to, int max, boolean includeRest, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
from
- Date/time defining the start of the time periodto
- Date/time defining the end of the time periodmax
- Maximum number of elements in listincludeRest
- Wether or not to include the remaining objects as one elementtypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.MostPopular
Exception
public MostPopular getMostPopular(String from, String to, int max, boolean includeRest, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
from
- Date/time defining the start of the time period - format 'yyyy-MM-dd HH:mm'to
- Date/time defining the end of the time period - format 'yyyy-MM-dd HH:mm'max
- Maximum number of elements in listincludeRest
- Wether or not to include the remaining objects as one elementtypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.MostPopular
Exception
public Total getTotal(Date from, Date to, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
from
- Date/time defining the start of the time periodto
- Date/time defining the end of the time periodtypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.Exception
public Total getTotal(String from, String to, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode) throws Exception
from
- Date/time defining the start of the time period - format 'yyyy-MM-dd HH:mm'to
- Date/time defining the end of the time period - format 'yyyy-MM-dd HH:mm'types
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.Exception
public MostPopular getMostPopular(int sinceHoursAgo, int sinceMinutesAgo, int max, boolean includeRest, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode, boolean groupByPublication) throws Exception
sinceHoursAgo
- Hours ago from now when the time period should startsinceMinutesAgo
- Minutes ago from now when the time period should startmax
- Maximum number of elements in listincludeRest
- Wether or not to include the remaining objects as one elementtypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.groupByPublication
- Whether articles and/or sections would be grouped by publication or notMostPopular
Exception
public MostPopular getMostPopular(Date from, Date to, int max, boolean includeRest, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode, boolean groupByPublication) throws Exception
from
- Date/time defining the start of the time periodto
- Date/time defining the end of the time periodmax
- Maximum number of elements in listincludeRest
- Wether or not to include the remaining objects as one elementtypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.groupByPublication
- Whether articles and/or sections would be grouped by publication or notMostPopular
Exception
public MostPopular getMostPopular(String from, String to, int max, boolean includeRest, String[] types, int[] contextIds, int[] pubIds, String[] categories, String[] metas, int mode, boolean groupByPublication) throws Exception
from
- Date/time defining the start of the time period - format 'yyyy-MM-dd HH:mm'to
- Date/time defining the end of the time period - format 'yyyy-MM-dd HH:mm'max
- Maximum number of elements in listincludeRest
- Wether or not to include the remaining objects as one elementtypes
- An array of types which this query will be limited to (i.e. article, section).
Setting this to null
will include all types in the query.contextIds
- An array of context IDs (typically section IDs) which this query will
be limited to. Setting this to null
will include all
contexts/sections in the query.pubIds
- An array of publication IDs which this query will be limited to. Setting
this to null
will include all publications/sites in the query.categories
- An array of category values which this query will be limited to. Setting
this to null
will include all categories in the query.metas
- An array of meta values which this query will be limited to. Setting
this to null
will include all metas in the query.mode
- The mode which this query will run in;
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_DISTINCT_META_COUNT
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_PAGEVIEWS
,
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR_ALL_ORDER_BY_DISTINCT_META_COUNT
.
If null, this will default to
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_MOST_POPULAR
.groupByPublication
- Whether articles and/or sections would be grouped by publication or notMostPopular
Exception
© 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.