Class ProgressToken.BucketKeyWrapper

  • All Implemented Interfaces:
    java.lang.Comparable<ProgressToken.BucketKeyWrapper>
    Enclosing class:
    ProgressToken

    public static class ProgressToken.BucketKeyWrapper
    extends java.lang.Object
    implements java.lang.Comparable<ProgressToken.BucketKeyWrapper>
    For consistent bucket key ordering, we need to ensure that reverse bucket IDs that have their MSB set actually are compared as being greater than those that don't. This is yet another issue caused by Java's lack of unsigned integers.
    • Constructor Detail

      • BucketKeyWrapper

        public BucketKeyWrapper​(long key)
    • Method Detail

      • getKey

        public long getKey()
      • toBucketId

        public com.yahoo.document.BucketId toBucketId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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