public interface PageViewDao extends Dao<PageView>
Modifier and Type | Method and Description |
---|---|
void |
ensureLoaded(org.joda.time.DateTime start,
org.joda.time.DateTime end,
LanguageSet langs)
Ensure the pageviews for the specified languages and time interval are loaded.
|
void |
ensureLoaded(List<org.joda.time.Interval> intervals,
LanguageSet langs)
Ensure the pageviews for the specified languages and time interval are loaded.
|
gnu.trove.map.TIntIntMap |
getAllViews(Language language,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate)
Calculates and returns non-zero views for every page in the date range.
|
int |
getNumViews(Language lang,
int pageId,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate) |
int |
getNumViews(Language lang,
int pageId,
org.joda.time.DateTime startDate,
int numberOfHours) |
Map<Integer,Integer> |
getNumViews(Language lang,
Iterable<Integer> ids,
ArrayList<org.joda.time.DateTime[]> dates)
Returns the total number of views for the requested page.
|
Map<Integer,Integer> |
getNumViews(Language lang,
Iterable<Integer> ids,
org.joda.time.DateTime startTime,
org.joda.time.DateTime endTime)
Returns the total number of views for the requested page.
|
int |
getNumViews(LocalId pageId,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate)
Returns the total number of views for the requested page.
|
int |
getNumViews(LocalId pageId,
org.joda.time.DateTime startDate,
int numberOfHours)
Returns the total number of views for the requested page.
|
gnu.trove.map.TIntIntMap getAllViews(Language language, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate) throws DaoException
language
- startDate
- endDate
- DaoException
int getNumViews(LocalId pageId, org.joda.time.DateTime startDate, int numberOfHours) throws DaoException
pageId
- startDate
- numberOfHours
- DaoException
int getNumViews(Language lang, int pageId, org.joda.time.DateTime startDate, int numberOfHours) throws DaoException
DaoException
int getNumViews(Language lang, int pageId, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate) throws DaoException
DaoException
int getNumViews(LocalId pageId, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate) throws DaoException
pageId
- startDate
- endDate
- DaoException
Map<Integer,Integer> getNumViews(Language lang, Iterable<Integer> ids, org.joda.time.DateTime startTime, org.joda.time.DateTime endTime) throws org.wikibrain.conf.ConfigurationException, DaoException
lang
- ids
- startTime
- endTime
- org.wikibrain.conf.ConfigurationException
DaoException
Map<Integer,Integer> getNumViews(Language lang, Iterable<Integer> ids, ArrayList<org.joda.time.DateTime[]> dates) throws org.wikibrain.conf.ConfigurationException, DaoException
lang
- ids
- dates
- org.wikibrain.conf.ConfigurationException
DaoException
void ensureLoaded(org.joda.time.DateTime start, org.joda.time.DateTime end, LanguageSet langs) throws DaoException
start
- end
- langs
- DaoException
void ensureLoaded(List<org.joda.time.Interval> intervals, LanguageSet langs) throws DaoException
intervals
- langs
- DaoException
Copyright © 2015. All rights reserved.