public class TimeDistributed extends Object
TimeDistributed
holds the results and meta information from a time distributed
query. Below is an example of how to iterate through the time distributed pageview timeslots.
TimeDistributed tdpl = pqm.getTimeDistributed(...);
for(Iterator i = tdpl.getTimeslots().iterator(); i.hasNext();) {
TimeDistributedTimeslot tdlt = (TimeDistributedTimeslot)i.next();
// Do something with this timeslot
}
Constructor and Description |
---|
TimeDistributed() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTimeslot(Object timeslot)
Adds a
TimeDistributedTimeslot to the list of timeslots |
int |
getMode()
Returns the query mode
|
int |
getObjId()
Returns the object ID if this was set in the query, else it returns -1;
|
int |
getResponseTime()
Returns the response time for the query execution in milliseconds
|
Collection |
getTimeslots()
Returns a
Collection of TimeDistributedTimeslot objects
representing the time distributed list |
String |
getTitle()
Returns the title of the object if an object ID was submitted in the query.
|
int |
getTotalDistinctMetaCount()
Returns the total distinct meta count.
|
int |
getTotalPageviews()
Returns the total number of page views.
|
String |
getUrl()
Returns the URL of the object if an object ID was submitted in the query.
|
protected void |
setMode(int mode) |
protected void |
setObjId(int objId) |
protected void |
setResponseTime(int responseTime) |
protected void |
setTimeslots(Collection timeslots) |
protected void |
setTitle(String title) |
protected void |
setTotalDistinctMetaCount(int totalDistinctMetaCount) |
protected void |
setTotalPageviews(int totalPageviews) |
protected void |
setUrl(String url) |
public int getTotalPageviews()
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED
and
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
this method will return -1
.protected void setTotalPageviews(int totalPageviews)
totalPageviews
- public int getTotalDistinctMetaCount()
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_DISTINCT_META_COUNT
and
com.escenic.analysis.common.Constants.QUERY_MODE_PAGEVIEW_TIME_DISTRIBUTED_ALL
this method will return -1
.protected void setTotalDistinctMetaCount(int totalDistinctMetaCount)
protected void setObjId(int objId)
public int getObjId()
protected void setResponseTime(int responseTime)
public int getResponseTime()
protected void setTitle(String title)
public String getTitle()
null
.null
.public String getUrl()
null
.null
.protected void setUrl(String url)
protected void addTimeslot(Object timeslot)
TimeDistributedTimeslot
to the list of timeslotstimeslot
- A TimeDistributedTimeslot
public Collection getTimeslots()
Collection
of TimeDistributedTimeslot
objects
representing the time distributed listCollection
of TimeDistributedTimeslot
objects
representing the time distributed listprotected void setTimeslots(Collection timeslots)
public int getMode()
protected void setMode(int mode)
© 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.