Package com.yahoo.documentapi
Class ProgressToken.BucketKeyWrapper
- java.lang.Object
-
- com.yahoo.documentapi.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 Summary
Constructors Constructor Description BucketKeyWrapper(long key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ProgressToken.BucketKeyWrapper other)
boolean
equals(java.lang.Object o)
long
getKey()
int
hashCode()
com.yahoo.document.BucketId
toBucketId()
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(ProgressToken.BucketKeyWrapper other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ProgressToken.BucketKeyWrapper>
-
getKey
public long getKey()
-
toBucketId
public com.yahoo.document.BucketId toBucketId()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-