mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-13 06:38:52 +02:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
21 lines
604 B
Scala
21 lines
604 B
Scala
package com.twitter.timelineranker.entity_tweets
|
|
|
|
import com.twitter.timelineranker.model.CandidateTweetsResult
|
|
import com.twitter.timelineranker.model.RecapQuery
|
|
import com.twitter.util.Future
|
|
|
|
/**
|
|
* A repository of entity tweets candidates.
|
|
*
|
|
* For now, it does not cache any results therefore forwards all calls to the underlying source.
|
|
*/
|
|
class EntityTweetsRepository(source: EntityTweetsSource) {
|
|
def get(query: RecapQuery): Future[CandidateTweetsResult] = {
|
|
source.get(query)
|
|
}
|
|
|
|
def get(queries: Seq[RecapQuery]): Future[Seq[CandidateTweetsResult]] = {
|
|
source.get(queries)
|
|
}
|
|
}
|