Skip to content

Instantly share code, notes, and snippets.

@lgiorda
Created April 12, 2012 19:11
Show Gist options
  • Save lgiorda/2370230 to your computer and use it in GitHub Desktop.
Save lgiorda/2370230 to your computer and use it in GitHub Desktop.
case class Stock(date: String, open: Double, high: Double, low: Double, close: Double, volume: Int, adjClose: Double)
object RiakTest {
def main(args: Array[String]) = {
val riakClient = RiakFactory.httpClient("http://localhost:8091/riak")
var myBucket = riakClient.fetchBucket("goog").execute()
var myObject = myBucket.fetch("2004-09-28", classOf[Stock]).execute()
/**
* No suitable constructor found for type [simple type, class org.mycomp.data.Stock]:
* can not instantiate from JSON object (need to add/enable type information?)
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment