the-algorithm/src/scala/com/twitter/simclusters_v2/hdfs_sources/injections/ClusterTopMediaTweetsInjection.scala
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
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.
2023-03-31 17:36:31 -05:00

14 lines
540 B
Scala

package com.twitter.simclusters_v2.hdfs_sources.injections
import com.twitter.scalding_internal.multiformat.format.keyval.KeyValInjection
import com.twitter.scalding_internal.multiformat.format.keyval.KeyValInjection.ScalaCompactThrift
import com.twitter.simclusters_v2.thriftscala.{TweetsWithScore, DayPartitionedClusterId}
object ClusterTopMediaTweetsInjection {
val injection = KeyValInjection[DayPartitionedClusterId, TweetsWithScore](
ScalaCompactThrift(DayPartitionedClusterId),
ScalaCompactThrift(TweetsWithScore)
)
}