public interface ModelSerializer<T>
Modifier and Type | Field and Description |
---|---|
static ModelSerializer<byte[]> |
raw
A pass through serializer
|
Modifier and Type | Method and Description |
---|---|
T |
deserialize(byte[] bytes)
Given bytes serialized via
serialize(Object) return
the model |
byte[] |
serialize(T model)
Given a model return the serialized bytes
|
static final ModelSerializer<byte[]> raw
byte[] serialize(T model)
model
- modelT deserialize(byte[] bytes)
serialize(Object)
return
the modelbytes
- serialized bytesRuntimeException
- if bytes
is invalid or there was an error deserializingCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.