public class KVStoreSerializer extends Object
The serializer is based on Jackson, so values are written as JSON. It also allows "naked strings" and integers to be written as values directly, which will be written as UTF-8 strings.
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper
Object mapper used to process app-specific types.
|
| Constructor and Description |
|---|
KVStoreSerializer() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(byte[] data,
Class<T> klass) |
byte[] |
serialize(Object o) |
Copyright © 2020. All rights reserved.