Created
April 12, 2012 19:11
-
-
Save lgiorda/2370230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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