Kevin,

May I suggest you have a look at the sample applications here:

https://github.com/DistributedNonsense/CorrugatedIron.Samples

And the documentation about querying here:

http://corrugatediron.org/documentation/Basics.Querying.html

Both of those directly refer to RiakResults and how to use them.

OJ



On Sat, Nov 10, 2012 at 7:42 AM, Jeremiah Peschka <
[email protected]> wrote:

> You would want to look at the RiakResult.Value property to get to the
> IEnumerable<string>.
>
> ---
> Jeremiah Peschka
> Founder, Brent Ozar Unlimited
>
> On Nov 9, 2012, at 1:34 PM, Kevin Burton <[email protected]> wrote:
>
> > One more question on this subject. The return from ListKeys is a
> RiakResult<IEnumerable<string>> how do I get the IEnumerable<string>?
> >
> > On Nov 9, 2012, at 12:24 PM, Jeremiah Peschka <
> [email protected]> wrote:
> >
> >> It's been in CorrugatedIron since the very early commits. If you pulled
> from NuGet, it's there.
> >>
> >> ---
> >> Jeremiah Peschka, Managing Director, Brent Ozar PLF, LLC
> >> Microsoft SQL Server MVP
> >>
> >> On Nov 9, 2012, at 10:08 AM, Kevin Burton <[email protected]>
> wrote:
> >>
> >>> Thank you. Again this would not be used in production. But it is
> actually quite useful in testing. For example if I can get a list of valid
> keys then I can randomly pick a key and get the associated value from that
> randomly picked key. Again I cannot think of a good reason to use this in
> production. Has this just been added or can I find this method in my
> assemblies? Thanks again.
> >>>
> >>> On Nov 9, 2012, at 11:39 AM, Jeremiah Peschka <
> [email protected]> wrote:
> >>>
> >>>> I know, I know. It's a terrible idea. As client developers we took
> the line of "Well, we can't stop you from chopping off your own foot. Might
> as well give you a knife!"
> >>>>
> >>>> ---
> >>>> Jeremiah Peschka
> >>>> Founder, Brent Ozar Unlimited
> >>>>
> >>>> On Nov 9, 2012, at 9:37 AM, Mark Phillips <[email protected]> wrote:
> >>>>
> >>>>> On Fri, Nov 9, 2012 at 9:33 AM, Jeremiah Peschka
> >>>>> <[email protected]> wrote:
> >>>>>> Shazam!
> >>>>>>
> https://github.com/DistributedNonsense/CorrugatedIron/blob/master/CorrugatedIron/RiakClient.cs#L541
> >>>>>
> >>>>> Noooooooooooo.
> >>>>>
> >>>>>> There's also a StreamingListKeys operation that is somewhat less
> blocking
> >>>>>> that a straight up ListKeys.
> >>>>>
> >>>>> :)
> >>>>>
> >>>>> Mark
> >>>>>
> >>>>>> ---
> >>>>>> Jeremiah Peschka
> >>>>>> Founder, Brent Ozar Unlimited
> >>>>>>
> >>>>>> On Nov 9, 2012, at 9:14 AM, Kevin Burton <[email protected]>
> wrote:
> >>>>>>
> >>>>>> Agreed that I would not try this in production. If possible I would
> still
> >>>>>> like to see if CI has a way to do this before I go and implement a
> custom
> >>>>>> web request to do this.
> >>>>>>
> >>>>>> On Nov 9, 2012, at 11:02 AM, Mark Phillips <[email protected]> wrote:
> >>>>>>
> >>>>>> On Fri, Nov 9, 2012 at 7:51 AM, Kevin Burton <
> [email protected]>
> >>>>>> wrote:
> >>>>>>
> >>>>>> I would like to get a list of all the keys in a particular bucket.
> I would
> >>>>>> prefer the answer come in the form of a CorrugatedIron sample but a
> general
> >>>>>> REST call would also be helpful. Is this possible? Thank you.
> >>>>>>
> >>>>>>
> >>>>>> This is well-documented in our docs [0]. Please note that this is
> >>>>>>
> >>>>>> *not* recommended for production use (as the page states). I took a
> >>>>>>
> >>>>>> quick look at the CorrugatedIron docs [1] and didn't find any
> details
> >>>>>>
> >>>>>> on how to do this which means that either a) I missed it or b) OJ
> and
> >>>>>>
> >>>>>> Jeremiah saved you a lot of production pain by not implementing it.
> :)
> >>>>>>
> >>>>>>
> >>>>>> Mark
> >>>>>>
> >>>>>>
> >>>>>> [0]
> http://docs.basho.com/riak/latest/references/apis/http/HTTP-List-Keys/
> >>>>>>
> >>>>>> [1] http://corrugatediron.org/documentation/Basics.Querying.html
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>>
> >>>>>> riak-users mailing list
> >>>>>>
> >>>>>> [email protected]
> >>>>>>
> >>>>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> riak-users mailing list
> >>>>>> [email protected]
> >>>>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>



-- 

OJ Reeves
+61 431 952 586
http://buffered.io/
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to