voldemort.store.routed
Class NodeValue<K,V>

java.lang.Object
  extended by voldemort.store.routed.NodeValue<K,V>
Type Parameters:
K - The type of the key
V - The type of the value
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class NodeValue<K,V>
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A wrapper around a node id, key and value. This class represents one key/value as fetched from a single server.

See Also:
Serialized Form

Constructor Summary
NodeValue(int nodeId, K key, Versioned<V> value)
           
 
Method Summary
 NodeValue<K,V> clone()
           
 boolean equals(java.lang.Object o)
           
 K getKey()
           
 int getNodeId()
           
 Version getVersion()
           
 Versioned<V> getVersioned()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeValue

public NodeValue(int nodeId,
                 K key,
                 Versioned<V> value)
Method Detail

getNodeId

public int getNodeId()

getKey

public K getKey()

getVersioned

public Versioned<V> getVersioned()

getVersion

public Version getVersion()

clone

public NodeValue<K,V> clone()
Overrides:
clone in class java.lang.Object

toString

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

hashCode

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

equals

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


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