voldemort.store.routed
Class NodeValue<K,V>
java.lang.Object
voldemort.store.routed.NodeValue<K,V>
- Type Parameters:
K
- The type of the keyV
- 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
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
NodeValue
public NodeValue(int nodeId,
K key,
Versioned<V> value)
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