voldemort.utils
Class ConsistencyCheck.HashedValue
java.lang.Object
voldemort.utils.ConsistencyCheck.Value
voldemort.utils.ConsistencyCheck.HashedValue
- Enclosing class:
- ConsistencyCheck
public static class ConsistencyCheck.HashedValue
- extends ConsistencyCheck.Value
A class to save version and value hash It is used to compare versions by
the value hash
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ConsistencyCheck.HashedValue
public ConsistencyCheck.HashedValue(Versioned<byte[]> versioned)
- Parameters:
versioned
- Versioned value with version information and value
itself
equals
public boolean equals(java.lang.Object object)
- Specified by:
equals
in class ConsistencyCheck.Value
compare
public Occurred compare(ConsistencyCheck.Value v)
hashCode
public int hashCode()
- Specified by:
hashCode
in class ConsistencyCheck.Value
isExpired
public boolean isExpired(long expiredTimeMs)
- Specified by:
isExpired
in class ConsistencyCheck.Value
toString
public java.lang.String toString()
- Specified by:
toString
in class ConsistencyCheck.Value
isTimeStampLaterThan
public boolean isTimeStampLaterThan(ConsistencyCheck.Value currentLatest)
- Specified by:
isTimeStampLaterThan
in class ConsistencyCheck.Value
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu