Class BucketId

  • All Implemented Interfaces:

    public class BucketId
    extends java.lang.Object
    implements java.lang.Comparable<BucketId>
    Representation of a bucket identifier.
    • Constructor Detail

      • BucketId

        public BucketId()
        Default-constructed BucketId signifies an invalid bucket ID.
      • BucketId

        public BucketId​(long id)
        Creates a bucket id with the given raw bucket id. This is a 64 bit mask where the first 6 MSB bits set how many LSB bits should actually be used. Right now it only have simple functionality. More will be added for it to be configurable.
      • BucketId

        public BucketId​(int usedBits,
                        long id)
      • BucketId

        public BucketId​(java.lang.String serialized)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(BucketId other)
        Specified by:
        compareTo in interface java.lang.Comparable<BucketId>
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • getUsedBits

        public int getUsedBits()
      • getRawId

        public long getRawId()
      • getId

        public long getId()
      • withoutCountBits

        public long withoutCountBits()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • contains

        public boolean contains​(BucketId id)