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.
28 lines
803 B
Scala
28 lines
803 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.{
|
|
Int2BigEndian,
|
|
Long2BigEndian,
|
|
ScalaCompactThrift
|
|
}
|
|
import com.twitter.simclusters_v2.thriftscala.SimClustersInferredEntities
|
|
|
|
object InferredEntitiesInjections {
|
|
|
|
final val InferredEntityInjection: KeyValInjection[Long, SimClustersInferredEntities] =
|
|
KeyValInjection(
|
|
Long2BigEndian,
|
|
ScalaCompactThrift(SimClustersInferredEntities)
|
|
)
|
|
|
|
final val InferredEntityKeyedByClusterInjection: KeyValInjection[
|
|
Int,
|
|
SimClustersInferredEntities
|
|
] =
|
|
KeyValInjection(
|
|
Int2BigEndian,
|
|
ScalaCompactThrift(SimClustersInferredEntities)
|
|
)
|
|
}
|