voldemort.utils
Class ConsistencyCheck.HashedValue

java.lang.Object
  extended by voldemort.utils.ConsistencyCheck.Value
      extended by 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


Constructor Summary
ConsistencyCheck.HashedValue(Versioned<byte[]> versioned)
           
 
Method Summary
 Occurred compare(ConsistencyCheck.Value v)
           
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 boolean isExpired(long expiredTimeMs)
           
 boolean isTimeStampLaterThan(ConsistencyCheck.Value currentLatest)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsistencyCheck.HashedValue

public ConsistencyCheck.HashedValue(Versioned<byte[]> versioned)
Parameters:
versioned - Versioned value with version information and value itself
Method Detail

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