@Deprecated public interface StoreSerializer extends Serializer
Modifier and Type | Method and Description |
---|---|
<T> T |
copy(T object)
Deprecated.
Returns a copy of the specfied object.
|
<T> T |
decode(byte[] bytes)
Deprecated.
Deserializes the specified bytes into an object.
|
<T> T |
decode(ByteBuffer buffer)
Deprecated.
Deserializes the specified bytes into an object.
|
<T> T |
decode(InputStream stream)
Deprecated.
Deserializes the specified bytes into an object.
|
byte[] |
encode(Object obj)
Deprecated.
Serializes the specified object into bytes.
|
void |
encode(Object obj,
ByteBuffer buffer)
Deprecated.
Serializes the specified object into bytes.
|
void |
encode(Object obj,
OutputStream stream)
Deprecated.
Serializes the specified object into bytes.
|
static StoreSerializer |
using(KryoNamespace ns)
Deprecated.
Creates a new StoreSerializer instance from a KryoNamespace.
|
forTypes, using, using
byte[] encode(Object obj)
encode
in interface Serializer
obj
- object to be serializedvoid encode(Object obj, ByteBuffer buffer)
obj
- object to be serializedbuffer
- to write serialized bytesvoid encode(Object obj, OutputStream stream)
obj
- object to be serializedstream
- to write serialized bytes<T> T decode(byte[] bytes)
decode
in interface Serializer
T
- decoded typebytes
- bytes to be deserialized<T> T decode(ByteBuffer buffer)
T
- decoded typebuffer
- bytes to be deserialized<T> T decode(InputStream stream)
T
- decoded typestream
- stream containing the bytes to be deserialized<T> T copy(T object)
copy
in interface Serializer
T
- object typeobject
- object to copystatic StoreSerializer using(KryoNamespace ns)
using
in interface Serializer
ns
- kryo namespace