public class KeyValue
extends java.lang.Object
KeyValues.
This is a simple value type; mutating it won't affect your Transaction or
the Database.| Constructor and Description |
|---|
KeyValue(byte[] key,
byte[] value)
Constructs a new
KeyValue from the specified key and value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getKey()
Gets the key from the pair.
|
byte[] |
getValue()
Gets the value from the pair.
|
int |
hashCode() |
public KeyValue(byte[] key,
byte[] value)
KeyValue from the specified key and value.key - the key portion of the pairvalue - the value portion of the pairpublic byte[] getKey()
public byte[] getValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object