|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.AbstractTransportable edu.umich.eecs.tac.props.AbstractTransportableEntryListBacking<S> edu.umich.eecs.tac.props.AbstractKeyedEntryList<Query,T> edu.umich.eecs.tac.props.AbstractQueryKeyedReportTransportable<QueryReport.QueryReportEntry> edu.umich.eecs.tac.props.QueryReport
public class QueryReport
Query report contains impressions, clicks, cost, average position, and ad displayed by the advertiser for each query class during the period as well as the positions and displayed ads of all advertisers during the period for each query class.
Nested Class Summary | |
---|---|
static class |
QueryReport.DisplayReport
Display report contains the positions and displayed ads of all advertisers during the period for each query class. |
static class |
QueryReport.DisplayReportEntry
Display report entry contains the positions and displayed ads of the advertiser during the period. |
static class |
QueryReport.QueryReportEntry
Query report entry holds the impressions, clicks, cost, average position, and ad displayed by the advertiser for each query class during the period as well as the positions and displayed ads of all advertisers during the period. |
Constructor Summary | |
---|---|
QueryReport()
Creates a new query report. |
Method Summary | |
---|---|
void |
addClicks(int index,
int clicks)
Adds the clicks to the associated query. |
void |
addClicks(int index,
int clicks,
double cost)
Adds the clicks to the associated query. |
void |
addClicks(Query query,
int clicks)
Adds the clicks to the associated query. |
void |
addClicks(Query query,
int clicks,
double cost)
Adds the clicks to the associated query. |
void |
addCost(int index,
double cost)
Adds the cost to the associated query. |
void |
addCost(Query query,
double cost)
Adds the cost to the associated query. |
void |
addImpressions(int index,
int regular,
int promoted)
Adds the impressions associated with the query. |
void |
addImpressions(int index,
int regular,
int promoted,
Ad ad,
double positionSum)
Adds the impressions associated with the query. |
void |
addImpressions(Query query,
int regular,
int promoted)
Adds the impressions associated with the query. |
void |
addImpressions(Query query,
int regular,
int promoted,
Ad ad,
double positionSum)
Adds the impressions associated with the query. |
void |
addQuery(Query query,
int regularImpressions,
int promotedImpressions,
int clicks,
double cost,
double positionSum)
Adds a QueryReport.QueryReportEntry keyed with the specificed query and the associated viewing statistics. |
java.util.Set<java.lang.String> |
advertisers(int index)
Returns the set of advertisers with data for the given query. |
java.util.Set<java.lang.String> |
advertisers(Query query)
Returns the set of advertisers with data for the given query. |
protected QueryReport.QueryReportEntry |
createEntry(Query query)
Creates a QueryReport.QueryReportEntry with the given query as the key. |
protected java.lang.Class |
entryClass()
Returns the QueryReport.QueryReportEntry class. |
Ad |
getAd(int index)
Returns the shown ad for the associated query. |
Ad |
getAd(int index,
java.lang.String advertiser)
Returns the shown ad for the associated query and advertiser. |
Ad |
getAd(Query query)
Returns the shown ad for the associated query. |
Ad |
getAd(Query query,
java.lang.String advertiser)
Returns the shown ad for the associated query and advertiser. |
int |
getClicks(int index)
Returns the total number of clicks for the associated query. |
int |
getClicks(Query query)
Returns the total number of clicks for the associated query. |
double |
getCost(int index)
Returns the total cost for the associated query. |
double |
getCost(Query query)
Returns the total cost for the associated query. |
double |
getCPC(int index)
Returns the average CPC for the associated query. |
double |
getCPC(Query query)
Returns the average CPC for the associated query. |
int |
getImpressions(int index)
Returns the total number of impressions for the associated query. |
int |
getImpressions(Query query)
Returns the total number of impressions for the associated query. |
double |
getPosition(int index)
Returns the average position for the associated query. |
double |
getPosition(int index,
java.lang.String advertiser)
Returns the average position for the associated query and advertiser. |
double |
getPosition(Query query)
Returns the average position for the associated query. |
double |
getPosition(Query query,
java.lang.String advertiser)
Returns the average position for the associated query and advertiser. |
int |
getPromotedImpressions(int index)
Returns the total number of promoted impressions for the associated query. |
int |
getPromotedImpressions(Query query)
Returns the total number of promoted impressions for the associated query. |
int |
getRegularImpressions(int index)
Returns the total number of regular impressions for the associated query. |
int |
getRegularImpressions(Query query)
Returns the total number of regular impressions for the associated query. |
void |
setAd(int index,
Ad ad)
Sets the shown ad for the associated query. |
void |
setAd(int index,
java.lang.String advertiser,
Ad ad)
Sets the shown ad for the associated query and advertiser. |
void |
setAd(Query query,
Ad ad)
Sets the shown ad for the associated query. |
void |
setAd(Query query,
java.lang.String advertiser,
Ad ad)
Sets the shown ad for the associated query and advertiser. |
void |
setAdAndPosition(int index,
java.lang.String advertiser,
Ad ad,
double position)
Sets the shown ad and average position for the associated query and advertiser. |
void |
setAdAndPosition(Query query,
java.lang.String advertiser,
Ad ad,
double position)
Sets the shown ad and average position for the associated query and advertiser. |
void |
setClicks(int index,
int clicks)
Sets the clicks for associated query. |
void |
setClicks(int index,
int clicks,
double cost)
Sets the clicks for associated query. |
void |
setClicks(Query query,
int clicks)
Sets the clicks for associated query. |
void |
setClicks(Query query,
int clicks,
double cost)
Sets the clicks for associated query. |
void |
setCost(int index,
double cost)
Sets the cost associated with the query. |
void |
setCost(Query query,
double cost)
Sets the cost associated with the query. |
void |
setImpressions(int index,
int regularImpressions,
int promotedImpressions)
Sets the impressions associated with the query. |
void |
setImpressions(int index,
int regular,
int promoted,
Ad ad,
double positionSum)
Sets the impressions associated with the query. |
void |
setImpressions(Query query,
int regularImpressions,
int promotedImpressions)
Sets the impressions associated with the query. |
void |
setImpressions(Query query,
int regularImpressions,
int promotedImpressions,
Ad ad,
double positionSum)
Sets the impressions associated with the query. |
void |
setPosition(int index,
java.lang.String advertiser,
double position)
Sets the average position for the associated query and advertiser. |
void |
setPosition(Query query,
java.lang.String advertiser,
double position)
Sets the average position for the associated query and advertiser. |
void |
setPositionSum(int index,
double positionSum)
Sets the sum of the positions over all the impressions for a query. |
void |
setPositionSum(Query query,
double positionSum)
Sets the sum of the positions over all the impressions for a query. |
Methods inherited from class edu.umich.eecs.tac.props.AbstractQueryKeyedReportTransportable |
---|
addQuery, containsQuery, getQuery |
Methods inherited from class edu.umich.eecs.tac.props.AbstractKeyedEntryList |
---|
addKey, containsKey, getEntry, getKey, indexForEntry, iterator, keys |
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportableEntryListBacking |
---|
addEntry, afterAddEntry, afterRemoveEntry, beforeAddEntry, beforeRemoveEntry, getEntries, getEntry, readAfterEntries, readBeforeEntries, readWithLock, removeEntry, size, toString, toStringAfterEntries, toStringBeforeEntries, writeAfterEntries, writeBeforeEntries, writeWithLock |
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportable |
---|
getTransportName, isLocked, lock, lockCheck, read, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryReport()
Method Detail |
---|
protected final QueryReport.QueryReportEntry createEntry(Query query)
QueryReport.QueryReportEntry
with the given query
as the key.
createEntry
in class AbstractKeyedEntryList<Query,QueryReport.QueryReportEntry>
query
- the query key
QueryReport.QueryReportEntry
with the given query
as the key.protected final java.lang.Class entryClass()
QueryReport.QueryReportEntry
class.
entryClass
in class AbstractTransportableEntryListBacking<QueryReport.QueryReportEntry>
QueryReport.QueryReportEntry
class.public final void addQuery(Query query, int regularImpressions, int promotedImpressions, int clicks, double cost, double positionSum)
QueryReport.QueryReportEntry
keyed with the specificed query and the associated viewing statistics.
query
- the query key.regularImpressions
- the number of regular impressions.promotedImpressions
- the number of promoted impressions.clicks
- the number of clicks.cost
- the cost of the clicks.positionSum
- the sum of the positions over all impressions.public final void setPositionSum(Query query, double positionSum)
query
- the querypositionSum
- the sum of the positions over all the impressions for a query.public final void setPositionSum(int index, double positionSum)
index
- the index of the querypositionSum
- the sum of the positions over all the impressions for a query.public final void setCost(Query query, double cost)
query
- the querycost
- the cost associated with the query.public final void setCost(int index, double cost)
index
- the query indexcost
- the cost associated with the query.public final void setImpressions(Query query, int regularImpressions, int promotedImpressions)
query
- the queryregularImpressions
- the regular impressionspromotedImpressions
- the promoted impressionspublic final void setImpressions(Query query, int regularImpressions, int promotedImpressions, Ad ad, double positionSum)
query
- the queryregularImpressions
- the regular impressionspromotedImpressions
- the promoted impressionsad
- the ad shownpositionSum
- the sum of positions over all impressionspublic final void addImpressions(Query query, int regular, int promoted)
query
- the queryregular
- the reqular impressionspromoted
- the promoted impressionspublic final void addImpressions(Query query, int regular, int promoted, Ad ad, double positionSum)
query
- the queryregular
- the reqular impressionspromoted
- the promoted impressionsad
- the ad shownpositionSum
- the sum of positions over all impressionspublic final void addImpressions(int index, int regular, int promoted)
index
- the query indexregular
- the reqular impressionspromoted
- the promoted impressionspublic final void addImpressions(int index, int regular, int promoted, Ad ad, double positionSum)
index
- the query indexregular
- the reqular impressionspromoted
- the promoted impressionsad
- the ad shownpositionSum
- the sum of positions over all impressionspublic final void setImpressions(int index, int regularImpressions, int promotedImpressions)
index
- the query indexregularImpressions
- the regular impressionspromotedImpressions
- the promoted impressionspublic final void setImpressions(int index, int regular, int promoted, Ad ad, double positionSum)
index
- the query indexregular
- the regular impressionspromoted
- the promoted impressionsad
- the ad shownpositionSum
- the sum of positions over all impressionspublic final void setClicks(Query query, int clicks)
query
- the queryclicks
- the clickspublic final void setClicks(Query query, int clicks, double cost)
query
- the queryclicks
- the clickscost
- the costpublic final void setClicks(int index, int clicks)
index
- the query indexclicks
- the clickspublic final void setClicks(int index, int clicks, double cost)
index
- the query indexclicks
- the clickscost
- the costpublic final void addClicks(Query query, int clicks)
query
- the queryclicks
- the clickspublic final void addClicks(Query query, int clicks, double cost)
query
- the queryclicks
- the clickscost
- the costpublic final void addClicks(int index, int clicks)
index
- the query indexclicks
- the clickspublic final void addClicks(int index, int clicks, double cost)
index
- the query indexclicks
- the clickscost
- the costpublic final void addCost(Query query, double cost)
query
- the querycost
- the costpublic final void addCost(int index, double cost)
index
- the query indexcost
- the costpublic final double getPosition(Query query)
query
- the query
public final double getPosition(int index)
index
- the query index
public final double getCPC(Query query)
query
- the query
public final double getCPC(int index)
index
- the query index
public final int getImpressions(Query query)
query
- the query
public final int getImpressions(int index)
index
- the query index
public final int getRegularImpressions(Query query)
query
- the query
public final int getRegularImpressions(int index)
index
- the query index
public final int getPromotedImpressions(Query query)
query
- the query
public final int getPromotedImpressions(int index)
index
- the query index
public final int getClicks(Query query)
query
- the query
public final int getClicks(int index)
index
- the query index
public final double getCost(Query query)
query
- the query
public final double getCost(int index)
index
- the query index
public final double getPosition(Query query, java.lang.String advertiser)
query
- the queryadvertiser
- the advertiser
public final double getPosition(int index, java.lang.String advertiser)
index
- the query indexadvertiser
- the advertiser
public final void setPosition(Query query, java.lang.String advertiser, double position)
query
- the queryadvertiser
- the advertiserposition
- the average position for the associated query and advertiser.public final void setPosition(int index, java.lang.String advertiser, double position)
index
- the query indexadvertiser
- the advertiserposition
- the average position for the associated query and advertiser.public final Ad getAd(Query query)
query
- the query
public final Ad getAd(int index)
index
- the query index
public final void setAd(Query query, Ad ad)
query
- the queryad
- the adpublic final void setAd(int index, Ad ad)
index
- the query indexad
- the adpublic final Ad getAd(Query query, java.lang.String advertiser)
query
- the queryadvertiser
- the advertiser
public final Ad getAd(int index, java.lang.String advertiser)
index
- the query indexadvertiser
- the advertiser
public final void setAd(Query query, java.lang.String advertiser, Ad ad)
query
- the queryadvertiser
- the advertiserad
- the shown ad for the associated query and advertiser.public final void setAd(int index, java.lang.String advertiser, Ad ad)
index
- the query indexadvertiser
- the advertiserad
- the shown ad for the associated query and advertiser.public final void setAdAndPosition(Query query, java.lang.String advertiser, Ad ad, double position)
query
- the queryadvertiser
- the advertiserad
- the shown ad for the associated query and advertiser.position
- the average position for the associated query and advertiser.public final void setAdAndPosition(int index, java.lang.String advertiser, Ad ad, double position)
index
- the query indexadvertiser
- the advertiserad
- the shown ad for the associated query and advertiser.position
- the average position for the associated query and advertiser.public final java.util.Set<java.lang.String> advertisers(Query query)
query
- the query
public final java.util.Set<java.lang.String> advertisers(int index)
index
- the query index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |