Package be.bagofwords.db.data
Class KeyValueSerializer<T>
- java.lang.Object
-
- be.bagofwords.db.data.KeyValueSerializer<T>
-
- All Implemented Interfaces:
ObjectSerializer<be.bagofwords.util.KeyValue<T>>,Serializable
public class KeyValueSerializer<T> extends Object implements ObjectSerializer<be.bagofwords.util.KeyValue<T>>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyValueSerializer(ObjectSerializer<T> valueSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetObjectSize()be.bagofwords.util.KeyValue<T>readValue(DataStream ds, int size)voidwriteValue(be.bagofwords.util.KeyValue<T> obj, DataStream ds)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface be.bagofwords.db.methods.ObjectSerializer
createExecConfig
-
-
-
-
Constructor Detail
-
KeyValueSerializer
public KeyValueSerializer(ObjectSerializer<T> valueSerializer)
-
-
Method Detail
-
writeValue
public void writeValue(be.bagofwords.util.KeyValue<T> obj, DataStream ds)
- Specified by:
writeValuein interfaceObjectSerializer<T>
-
readValue
public be.bagofwords.util.KeyValue<T> readValue(DataStream ds, int size)
- Specified by:
readValuein interfaceObjectSerializer<T>
-
getObjectSize
public int getObjectSize()
- Specified by:
getObjectSizein interfaceObjectSerializer<T>
-
-