|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.AbstractKeyedEntry<T> edu.umich.eecs.tac.props.AbstractTransportableEntry<Query> edu.umich.eecs.tac.props.AbstractQueryEntry edu.umich.eecs.tac.props.QueryReport.QueryReportEntry
public 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.QueryReportEntry()
Creates an empty report entry. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
advertisers()
Returns the set of displayed advertisers. |
Ad |
getAd()
Returns the shown ad. |
Ad |
getAd(java.lang.String advertiser)
Returns the ad shown by an advertiser. |
int |
getClicks()
Returns the number of clicks. |
double |
getCost()
Returns the total cost. |
double |
getCPC()
Returns the average CPC. |
int |
getImpressions()
Returns the total number of impressions. |
double |
getPosition()
Returns the average position. |
double |
getPosition(java.lang.String advertiser)
Returns the average position of an advertiser. |
int |
getPromotedImpressions()
Returns the total number of promoted impressions. |
int |
getRegularImpressions()
Returns the total number of regular impressions. |
protected void |
readEntry(se.sics.isl.transport.TransportReader reader)
Reads the query report entry information. |
void |
setAd(Ad ad)
Sets the shown ad. |
void |
setAd(java.lang.String advertiser,
Ad ad)
Sets the ad shown by an advertiser. |
void |
setAdAndPosition(java.lang.String advertiser,
Ad ad,
double position)
Sets the average position and the ad shown by an advertiser. |
void |
setPosition(java.lang.String advertiser,
double position)
Sets the average position of an advertiser. |
void |
setPromotedImpressions(int promotedImpressions)
Sets the total number of promoted impressions. |
void |
setRegularImpressions(int regularImpressions)
Sets the total number of regular impressions. |
java.lang.String |
toString()
Returns the string representation of the query report entry. |
protected void |
writeEntry(se.sics.isl.transport.TransportWriter writer)
Writes the query report entry information to the writer. |
Methods inherited from class edu.umich.eecs.tac.props.AbstractQueryEntry |
---|
getQuery, keyNodeName, setQuery |
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportableEntry |
---|
readKey, writeKey |
Methods inherited from class edu.umich.eecs.tac.props.AbstractKeyedEntry |
---|
getKey, getTransportName, read, setKey, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.umich.eecs.tac.props.KeyedEntry |
---|
getKey |
Methods inherited from interface se.sics.isl.transport.Transportable |
---|
getTransportName, read, write |
Constructor Detail |
---|
public QueryReport.QueryReportEntry()
Method Detail |
---|
public final int getImpressions()
public final int getPromotedImpressions()
public final void setPromotedImpressions(int promotedImpressions)
promotedImpressions
- the total number of promoted impressions.public final int getRegularImpressions()
public final void setRegularImpressions(int regularImpressions)
regularImpressions
- the total number of regular impressions.public final int getClicks()
public final double getPosition()
public final double getCost()
public final double getCPC()
public final Ad getAd()
public final void setAd(Ad ad)
ad
- the shown adpublic final double getPosition(java.lang.String advertiser)
advertiser
- the advertiser.
public final void setPosition(java.lang.String advertiser, double position)
advertiser
- the advertiser.position
- the average position of an advertiserpublic final Ad getAd(java.lang.String advertiser)
advertiser
- the advertiser
public final void setAd(java.lang.String advertiser, Ad ad)
advertiser
- the advertiserad
- the ad shown by an advertiserpublic final void setAdAndPosition(java.lang.String advertiser, Ad ad, double position)
advertiser
- the advertiserad
- the ad shown by an advertiserposition
- the average positionpublic final java.util.Set<java.lang.String> advertisers()
protected final void readEntry(se.sics.isl.transport.TransportReader reader) throws java.text.ParseException
readEntry
in class AbstractKeyedEntry<Query>
reader
- the reader to read the state in from.
java.text.ParseException
- if an exception occured the query report entry information.protected final void writeEntry(se.sics.isl.transport.TransportWriter writer)
writeEntry
in class AbstractKeyedEntry<Query>
writer
- the writer to write the entry state topublic final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |