|
Oracle NoSQL Database version 11gR2.2.0.26 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.kv.Value
public class Value
The Value in a Key/Value store.
Nested Class Summary | |
---|---|
static class |
Value.Format
Identifies the format of a value. |
Method Summary | |
---|---|
static Value |
createValue(byte[] val)
Creates a Value from a value byte array. |
boolean |
equals(Object other)
|
static Value |
fromByteArray(byte[] bytes)
Deserializes the given bytes that were returned earlier by toByteArray() and returns the resulting Value. |
Value.Format |
getFormat()
Returns the value's format. |
byte[] |
getValue()
Returns the value byte array. |
int |
hashCode()
|
byte[] |
toByteArray()
Returns this Value as a serialized byte array, such that fromByteArray(byte[]) may be used to reconstitute the Value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.kv.impl.util.FastExternalizable |
---|
writeFastExternal |
Method Detail |
---|
public byte[] toByteArray()
fromByteArray(byte[])
may be used to reconstitute the Value.
Note that this method does not always return an array equal to the
getValue()
array. The serialized representation of a Value may
contain an extra byte identifying the format.
public static Value fromByteArray(byte[] bytes)
toByteArray()
and returns the resulting Value.
Note that an array equal to the getValue()
array may not be
passed to this method. To create a Value from only the value array,
call createValue(byte[])
instead.
public static Value createValue(byte[] val)
Value.Format.NONE
. This method
may not be used to create Avro values; for that, use an AvroBinding
instead.
public byte[] getValue()
public Value.Format getFormat()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Oracle NoSQL Database version 11gR2.2.0.26 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |