mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
01dbfee4c0
Tweetypie is the core Tweet service that handles the reading and writing of Tweet data.
17 lines
517 B
Scala
17 lines
517 B
Scala
package com.twitter.tweetypie
|
|
|
|
import com.fasterxml.jackson.core.JsonGenerator
|
|
import com.twitter.tweetypie.thriftscala.CachedTweet
|
|
import com.twitter.context.TwitterContext
|
|
|
|
package object store {
|
|
type JsonGen = JsonGenerator => Unit
|
|
|
|
// Bring Tweetypie permitted TwitterContext into scope
|
|
val TwitterContext: TwitterContext =
|
|
com.twitter.context.TwitterContext(com.twitter.tweetypie.TwitterContextPermit)
|
|
|
|
def cachedTweetFromUnhydratedTweet(tweet: Tweet): CachedTweet =
|
|
CachedTweet(tweet = tweet)
|
|
}
|