voldemort.utils
Class ConsistencyCheck.HashedValue

java.lang.Object
  extended by voldemort.utils.ConsistencyCheck.HashedValue
All Implemented Interfaces:
Version
Enclosing class:
ConsistencyCheck

protected static class ConsistencyCheck.HashedValue
extends java.lang.Object
implements Version

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(Version v)
          Return whether or not the given version preceeded this one, succeeded it, or is concurrant with it
 boolean equals(java.lang.Object object)
           
 Version getInner()
           
 int getValueHash()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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

getValueHash

public int getValueHash()

getInner

public Version getInner()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

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

compare

public Occurred compare(Version v)
Description copied from interface: Version
Return whether or not the given version preceeded this one, succeeded it, or is concurrant with it

Specified by:
compare in interface Version
Parameters:
v - The other version


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu