public class IndexValueSerializer
extends java.lang.Object
implements jdbm.helper.Serializer
| Modifier and Type | Field and Description |
|---|---|
private static byte |
AVL_TREE_VALUE
the flag for a AvlTree value
|
private static byte |
BTREE_VALUE
the flag for a BTree value
|
private static org.slf4j.Logger |
LOG
the logger for this class
|
private static byte |
LONG_VALUE
the flag for a Long value
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
IndexValueSerializer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(byte[] serialized) |
private byte[] |
serialize(ArrayTree<?> arrayTree)
Serialize a AvlTree value
|
private byte[] |
serialize(jdbm.btree.BTree bTree)
Serialize a BTree value
|
private byte[] |
serialize(java.lang.Long value)
Serialize a Long value
|
byte[] |
serialize(java.lang.Object obj)
Serialize the object.
|
private static final long serialVersionUID
private static final byte LONG_VALUE
private static final byte AVL_TREE_VALUE
private static final byte BTREE_VALUE
private static final org.slf4j.Logger LOG
public java.lang.Object deserialize(byte[] serialized)
throws java.io.IOException
deserialize in interface jdbm.helper.Serializerjava.io.IOExceptionpublic byte[] serialize(java.lang.Object obj)
throws java.io.IOException
serialize in interface jdbm.helper.Serializerobj - The object to serializejava.io.IOException - If the serialization failedprivate byte[] serialize(java.lang.Long value)
throws java.io.IOException
java.io.IOExceptionprivate byte[] serialize(jdbm.btree.BTree bTree)
throws java.io.IOException
java.io.IOExceptionprivate byte[] serialize(ArrayTree<?> arrayTree) throws java.io.IOException
java.io.IOException