bula
bula

Reputation: 9429

Does Apache thrift work with Scala

I am new to apache thrift and I am familiar with Scala. But I have not seen any example or any reference on internet, saying it supports Scala. Can some one tell me is there a way to work with scala on thrif. thank you.

Upvotes: 3

Views: 5257

Answers (3)

SilentDirge
SilentDirge

Reputation: 835

Twitters 'Scrooge' is meant as a replacement for the standard Thrift generator and generates Java and Scala code. It works with SBT and seems relatively mature.

Upvotes: 1

reconditesea
reconditesea

Reputation: 146

Yes, thrift can work with scala smoothly. It's not surprising since scala essentially works on JVM. One open-source example is Twitter's Scalding, a scala DSL for Cascading. In scalding, one is able to handle various cascading flows whose tuples are in the type of thrift-based classes. See LongThriftTransformer for example.

Upvotes: 2

om-nom-nom
om-nom-nom

Reputation: 62835

I don't mean to be rude, but the very first link for the google query apache thrift scala shows up scrooge, which

  1. notes, that due to interoperability between scala and java ordinary thrift-java will work fine
  2. itself -- a way to work with thrift in scala-native way

So yes, there are ways to work with Thrift in Scala.

Upvotes: 2

Related Questions