Class ClickLog
- java.lang.Object
-
- com.funnelback.publicui.search.model.log.Log
-
- com.funnelback.publicui.search.model.log.ClickLog
-
public class ClickLog extends Log
A click log, for search results or best bets (ex featured pages).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClickLog.TypeType of click
-
Field Summary
Fields Modifier and Type Field Description private intrankprivate java.net.URLrefererprivate java.net.URItargetprivate ClickLog.Typetype-
Fields inherited from class com.funnelback.publicui.search.model.log.Log
collection, date, profile, REQUEST_ID_NOTHING, requestId, USER_ID_NOTHING, userId, XML_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description ClickLog(java.util.Date date, Collection collection, Profile profile, java.lang.String requestId, java.net.URL referer, int rank, java.net.URI target, ClickLog.Type type, java.lang.String userId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRank()java.net.URLgetReferer()java.net.URIgetTarget()ClickLog.TypegetType()java.lang.StringtoString()-
Methods inherited from class com.funnelback.publicui.search.model.log.Log
getCollection, getDate, getProfile, getRequestId, getUserId
-
-
-
-
Field Detail
-
referer
private final java.net.URL referer
-
rank
private final int rank
-
target
private final java.net.URI target
-
type
private final ClickLog.Type type
-
-
Constructor Detail
-
ClickLog
public ClickLog(java.util.Date date, Collection collection, Profile profile, java.lang.String requestId, java.net.URL referer, int rank, java.net.URI target, ClickLog.Type type, java.lang.String userId)- Parameters:
date- Date of the eventcollection- Collectionprofile- ProfilerequestId- Request identifier (IP, hash, '-')referer- URL of the search page where the click is coming fromrank- Rank of the clicked resulttarget- URL of the result (should be the one stored in the index)type- Type of clickuserId- User identifier, may be null
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getReferer
public java.net.URL getReferer()
-
getRank
public int getRank()
-
getTarget
public java.net.URI getTarget()
-
getType
public ClickLog.Type getType()
-
-