I would say just to add long and Long for indexing (So it that it
supports Long, Integer and their respective natives), using BigNumber
subclasses have a different semantic and would restrict the developers
when designing the Riak POJOs.
Guido.
On 08/06/12 06:37, Russell Brown wrote:
On 7 Jun 2012, at 22:55, Guido Medina wrote:
All points to 32 bits, at least for the Java client side (indexes can
be of type Integer, not Long which is the 64 bits) Look for
RiakIndex.java, that will give you some answers.
That's a mistake on the part of the client developer at that time
(me). They should probably be BigInteger, since integers can be
arbitrarily large in erlang. I'm pretty sure Brian Roach (the new,
smarter, Java developer) is addressing this
https://github.com/basho/riak-java-client/issues/112
Russell
I don’t know the exact answer though.
Regards,
Guido.
*From:* Alexander Sicular <mailto:sicul...@gmail.com>
*Sent:* Thursday, June 07, 2012 10:43 PM
*To:* Berend Ozceri <mailto:ber...@eye.fi>
*Cc:* riak-users@lists.basho.com <mailto:riak-users@lists.basho.com>
*Subject:* Re: Are integer indexes in 2i 64-bit or 32-bit?
I would say yes... Probably, if you're on a 64bit system. . Unless
you're shifting stuff through JavaScript in which case I doubt it.
Cause last I checked, js don't speak 64bit int.
@siculars on twitter
http://siculars.posterous.com <http://siculars.posterous.com/>
Sent from my iRotaryPhone
On Jun 7, 2012, at 17:08, Berend Ozceri <ber...@eye.fi
<mailto:ber...@eye.fi>> wrote:
I apologize for asking this question if it's an FAQ or is documented
somewhere, but I don't see anything specific mentioned about the
size of integer indexes in 2i:
http://wiki.basho.com/Secondary-Indexes.html
I certainly could dive into to source code to answer this question,
but in case someone here knows, what's the size of an integer index
in 2i? I'm hoping that the answer will be that it's 64 bits…
Thanks,
Berend
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com <mailto:riak-users@lists.basho.com>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
------------------------------------------------------------------------
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com <mailto:riak-users@lists.basho.com>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com <mailto:riak-users@lists.basho.com>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com