riak-scala-client icon indicating copy to clipboard operation
riak-scala-client copied to clipboard

support storing and fetching links

Open kender-janrain opened this issue 12 years ago • 3 comments

Hi there, I've put together some support for storing and fetching riak links (not following links, yet!) This implementation introduces the RiakLinker[T], and RiakLink which puts that information into the RiakMeta[T] and RiakValue.

I've included a spec for the link parser and for basic store/retrieve.

  implicit object EntityRiakSupport extends RiakLinker[Entity] {
    def links(value: Entity) = Set(new RiakLink(bucketName, value.parent, "parent"))
  }

kender-janrain avatar Apr 23 '13 17:04 kender-janrain

Hi Kender. My sincerest apologies for not responding to your pull requests. The last months have been very hectic and I haven't had enough time to spend on my open source stuff.

I will get around to evaluating your pull requests as soon as possible but unfortunately I can't guarantee when :(

There are a few reasons that are blocking me from just accepting your requests:

  • I've been doing some research for doing MR (and 2i) as streaming responses instead of simply loading all results into memory the way I'm dong with 2i now and your MR pull request does too. I've been looking at Play iteratees/enumerators and other ways to support more efficient returning of large lists of results.
  • I'd like to see if we can create a type alias to combine the several type classes (RiakSerializer, RiakIndexer, RiakLinker). Having two of them in the type signatures was doable but three is getting a bit too much IMHO.

Hope to get back to you soon, Age

agemooij avatar May 07 '13 07:05 agemooij

Are there any plans to implement links and link walking in the (near) future? Basing on this pull request?

rokgerzelj avatar Jul 11 '13 21:07 rokgerzelj

Hi, yes. I'm very sorry for the long delay but I had an extremely busy last couple of months. I've just returned to working on riak-scala-client and earlier this week I released a vey minor new version to bring it up to date with Akka and Spray. See the release notes here:

https://github.com/agemooij/riak-scala-client/releases/tag/release-0.8.1.1

I've also just started working on linking and meta properties and I've just solved one of the niggling little issues I had with adding more type classes to the store method. In fact, I just finished a blog post about it:

http://scalapenos.com/2013/07/11/composing-type-classes.html

I'm planning on releasing a new version in about 2-3 weeks that will at the least contain support for links, link walking, and meta properties.

Again, my apologies for the long silence. I'm back on the job and new releases will start appearing soon. Age

agemooij avatar Jul 11 '13 21:07 agemooij