Is JSON number stored in binary format?

Guido Medina guido.medina at temetra.com
Mon Jan 28 19:13:37 EST 2013


I developed a custom IntRangeCollection class in Java for that, we store 
list of IDs (That come from a DB sequence), like Sean said; you will 
have to do it yourself, I spent a couple of days looking for something 
like that and ended up implementing it myself:

http://stackoverflow.com/questions/5744572/is-there-a-java-library-that-will-create-a-number-range-from-a-list-of-numbers/12371432#12371432

Hope that helps,

Guido.

On 28/01/13 20:43, Sean Cribbs wrote:
> Riak is oblivious of your data's format, so it will store the literal
> JSON. If you need more compact formats, you should marshal it yourself
> (and probably send it as a different media type) before storing.
>
> On Mon, Jan 28, 2013 at 1:35 PM, Boris Solovyov
> <boris.solovyov at gmail.com> wrote:
>> I apologize if question is answered on archives, but it is not easy to
>> search for this. Suppose I store following JSON array,
>>
>> PUT /riak/mybucket/mykey [1359401530, 1359401531, 1359401532, 1359401533,
>> 1359401534, 1359401535, 1359401536]
>>
>> Is number 1359401530 stored as array of bytes ['1', '3'.....] in 10 bytes,
>> or as binary value 01010001000001101101001000111010, in 4 bytes?
>>
>> Many thanks,
>> Boris
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>
>





More information about the riak-users mailing list