Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

support storing and fetching links #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kender-janrain
Copy link

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"))
  }

@agemooij
Copy link
Owner

agemooij commented May 7, 2013

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

@rokgerzelj
Copy link

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

@agemooij
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants