mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +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.
16 lines
509 B
Scala
16 lines
509 B
Scala
package com.twitter.timelineranker.common
|
|
|
|
import com.twitter.servo.util.FutureArrow
|
|
import com.twitter.timelineranker.core.CandidateEnvelope
|
|
import com.twitter.timelineranker.model.RecapQuery
|
|
import com.twitter.util.Future
|
|
|
|
/**
|
|
* Create a CandidateEnvelope based on the incoming RecapQuery
|
|
*/
|
|
object CreateCandidateEnvelopeTransform extends FutureArrow[RecapQuery, CandidateEnvelope] {
|
|
override def apply(query: RecapQuery): Future[CandidateEnvelope] = {
|
|
Future.value(CandidateEnvelope(query))
|
|
}
|
|
}
|