@Shareable public final class LikeCountUserHistorySummarizer extends Object implements UserHistorySummarizer
Constructor and Description |
---|
LikeCountUserHistorySummarizer()
Create a new like count summarizer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Class<? extends Event> |
eventTypeWanted()
Get the supertype of all events required by this summarizer.
|
int |
hashCode() |
SparseVector |
summarize(UserHistory<? extends Event> history)
Compute a vector summary of a user's history.
|
@Inject public LikeCountUserHistorySummarizer()
LikeBatch
events.public Class<? extends Event> eventTypeWanted()
UserHistorySummarizer
eventTypeWanted
in interface UserHistorySummarizer
@Nonnull public SparseVector summarize(@Nonnull UserHistory<? extends Event> history)
UserHistorySummarizer
summarize
in interface UserHistorySummarizer
history
- The history to summarize.