public class SerializedComparator
extends org.rocksdb.AbstractComparator
ClassTool
utility is provided to assist the user in easily instrumenting their classes for this functionality
without the need to modify business logic.Constructor and Description |
---|
SerializedComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.nio.ByteBuffer arg0,
java.nio.ByteBuffer arg1) |
static java.lang.Object |
deserializeObject(byte[] obuf)
static method for serialized byte to object conversion
|
java.lang.String |
name() |
static byte[] |
serializeObject(java.lang.Object Ob)
Static method for object to serialized byte conversion.
|
public int compare(java.nio.ByteBuffer arg0, java.nio.ByteBuffer arg1)
compare
in class org.rocksdb.AbstractComparator
public java.lang.String name()
name
in class org.rocksdb.AbstractComparator
public static java.lang.Object deserializeObject(byte[] obuf) throws java.io.IOException
obuf
- the byte buffer containing serialized datajava.io.IOException
- cannot convertpublic static byte[] serializeObject(java.lang.Object Ob) throws java.io.IOException
Ob
- the user objectjava.io.IOException
- cannot convert