java - Get only positive long from murmur3 guava -


I am using Java Moormoor 3 which will accept long to represent Lava. Is there any possibility of getting only positive long numbers? Correct ova USA Return +/- Results which are not good for me ..

I use murmur3 to convert string IDs to numerical representation due to CRCAD framework limitations. I am not afraid of a small amount of confrontation. But I'm afraid to take the bus (murmur3Value). It should increase the probability of a lot of collision. Am I right?

I have ~ 1 * 10 ^ 8 unique IDs, is it OK to fix their swan values ​​and to not be too confused

I have 10 ^ 7 values But there is no composite but hashes are positive and negative, I just want to use positive values.

Use of Math.abs is incorrect ... Math.abs (Long.MIN_VALUE) == Long.MIN_VALUE . It is also useless, considering that the simple options are:
  x> gt; & Gt; 1   

and

  X & amp; Long.MX_VRA   

In any case you lose a bit, either the highest or the least important one. I think there is no difference in the case of Murmur 3.


Regarding the collision, it really does not matter which operation you choose - you get about 2 ** 63 , that is, about 9e18 with different hashs 1e8 Inputs, this means that the collision is very rare if someone (I am lazy to see the formula).

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -