Package com.apple.foundationdb
Class KeyValue
- java.lang.Object
-
- com.apple.foundationdb.KeyValue
-
- Direct Known Subclasses:
MappedKeyValue
public class KeyValue extends java.lang.ObjectA key/value pair. Range read operation on FoundationDB returnKeyValues. This is a simple value type; mutating it won't affect yourTransactionor theDatabase.
-
-
Constructor Summary
Constructors Constructor Description KeyValue(byte[] key, byte[] value)Constructs a newKeyValuefrom the specified key and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getKey()Gets the key from the pair.byte[]getValue()Gets the value from the pair.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-