Package com.apple.foundationdb
Class KeyValue
java.lang.Object
com.apple.foundationdb.KeyValue
- Direct Known Subclasses:
MappedKeyValue
A key/value pair. Range read operation on FoundationDB return
KeyValue
s.
This is a simple value type; mutating it won't affect your Transaction
or
the Database
.-
Constructor Summary
ConstructorsConstructorDescriptionKeyValue
(byte[] key, byte[] value) Constructs a newKeyValue
from the specified key and value. -
Method Summary
-
Constructor Details
-
KeyValue
public KeyValue(byte[] key, byte[] value) Constructs a newKeyValue
from the specified key and value.- Parameters:
key
- the key portion of the pairvalue
- the value portion of the pair
-
-
Method Details
-
getKey
public byte[] getKey()Gets the key from the pair.- Returns:
- the key
-
getValue
public byte[] getValue()Gets the value from the pair.- Returns:
- the value
-
equals
-
hashCode
public int hashCode() -
toString
-