Mapped Container
When a mapped container is initiated, it receives a Mapper as the parameter. The Mapper will be used to serialize / deserialize the data from the conatiner, so that the caller would use it every time the data is accessed ot written to to the remote container.
For example, if the JSON Jackson-based ObjectMapper should be used as a serialzer, the creation of such a container will look as follows:
final JsonMapper jsonMapper = new JsonMapper(new ObjectMapper());
final MappedContainer<String> container = roStoreClient.getMappedContainer(CONTAINER, jsonMapper);
the last operation only creates the mapped container as an object on the client side.
This container can be used to execute the key-value update operations. This mapped container uses the general container internally, and applies the Mapper there where the serialization/deserialization should happen.
Create a Non-Versioned
To create a key-value pair the following can be executed:
VersionObject<String,String> inputVO = VersionedObject.createUnversionedEternal("my-key", "my-value")
VersionedObject<String,String> outputVO = container.post(inputVO);
Get a Non-Versioned
To create a key-value pair the following can be executed:
VersionedObject<String,String> outputVO = container.get("my-key", String.class);