public class DynamicPropertyValueSerializer extends Object implements PropertyValueSerializer
Object
/BigInteger
/BigDecimal
serialization logic
borrowed from hector serializers, rest is a modification of "https://gist.github.com/850865"Modifier and Type | Method and Description |
---|---|
Object |
fromByteBuffer(ByteBuffer byteBuffer) |
static DynamicPropertyValueSerializer |
get() |
ByteBuffer |
toByteBuffer(Object obj) |
public static DynamicPropertyValueSerializer get()
public ByteBuffer toByteBuffer(Object obj)
toByteBuffer
in interface PropertyValueSerializer
obj
- The object to serialize.ByteBuffer
holding a serialized form of the value argument.public Object fromByteBuffer(ByteBuffer byteBuffer)
fromByteBuffer
in interface PropertyValueSerializer
byteBuffer
- Holds the bytes as originally serialized using PropertyValueSerializer.toByteBuffer(Object)
.Copyright © GigaSpaces.