Package com.apple.foundationdb
Class KeyValue
- java.lang.Object
-
- com.apple.foundationdb.KeyValue
-
- Direct Known Subclasses:
MappedKeyValue
public class KeyValue extends java.lang.Object
A key/value pair. Range read operation on FoundationDB returnKeyValue
s. This is a simple value type; mutating it won't affect yourTransaction
or theDatabase
.
-
-
Constructor Summary
Constructors Constructor Description KeyValue(byte[] key, byte[] value)
Constructs a newKeyValue
from the specified key and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
java.lang.String
toString()
-
-
-
Method Detail
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-