Class BinaryId


  • public class BinaryId
    extends java.lang.Object
    A binary id. Internally, this class uses 3 longs (64-bit) values.
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryId​(java.lang.String identifier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      long getLength()  
      long getLongHash()
      Get a 64-bit hash value.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BinaryId

        public BinaryId​(java.lang.String identifier)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getLongHash

        public long getLongHash()
        Get a 64-bit hash value. The probability of collisions is about: 50% for a set of 5 billion entries, 1% for 600 million, 0.0001% for 6 million entries.
        Returns:
        a 64-bit hash value
      • getLength

        public long getLength()