map-db

Ildar Alishev ildaralishev at gmail.com
Wed Jan 21 07:39:42 EST 2015


Hi Christopher,

We are using UgameDB it connect our Unity3d C# app with RIAK. I think that this code is defined namely in UgameDB, so i don’t have an access to their source code, sorry.

Ildar. 

> 21 янв. 2015 г., в 14:46, Christopher Meiklejohn <christopher.meiklejohn at gmail.com> написал(а):
> 
>> 
>> On Jan 21, 2015, at 12:41 PM, Ildar Alishev <ildaralishev at gmail.com> wrote:
>> 
>> Hi Christopher,
>> 
>> thank you for your answer.
>> Honestly we work with ugameDb   and order is next
>> 
>> we start executing code (using C# in Unity3d), it goes to ugame db, than after ugamedb it goes to Riak(i think ugameDB use RIAK), and after this it sends us answer.
>> 
>> What code should i send you??? 
>> it is first time we are working with ugamedb and riak at all, so we are some sort of noobs)
>> 
>> 
>> here is some code that i’m using in Unity3d (C#)
>> 
>> public IEnumerator eMapQuery()
>>    {
>>        var map = buck.MapReduce(new ErlangMapPhase("unity", "map_phase"), new ErlangReducePhase("unity", "reduce_phase"));
>>        Debug.Log("Start");
>>        yield return map.WaitUntilDone();
>>        if(map.isSuccessful)
>>        foreach (var item in map.GetResult<Interactor>())
>>        {
>>            Debug.Log("Ok");
>>            foreach (var pair in item.Fields) Debug.Log(pair.Key + " = " + pair.Value.ToString());
>>        }
>>        else
>>        {
>>            Debug.Log("Fail");
>>        }
>>    }
> 
> Hi Ildar,
> 
> Can you provide me a little more information?
> 
> 1.) Which Riak client are you using to connect from C#?
> 2.) Can you show me the code where “buck” is defined?
> 3.) Can you show me the code where the connection to Riak is initialized?
> 
> Thanks!
> - Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150121/6d542bea/attachment-0002.html>


More information about the riak-users mailing list