This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Description
FEAT: Automatic deduction of Converter class
Rationale
For specialization of DatabaseClass<K, V>, with types, which Converter is implemented as part of library, the Converter should be automatically deduced inside Builder class. Such feature will simplify construction of Database for types, which implements interfaces supported by pmemkv-java.
Currently only ByteBufferConverter is implemented, however, as more converters will be part of library, this feature will be more useful
API Changes
Invocation of setKeyConverter() ans setValueConverter() would be not needed, yet possible if user want to provide own implementation.
Database<ByteBuffer, ByteBuffer> db = new Database.Builder<ByteBuffer, ByteBuffer>(ENGINE)
.setSize(1073741824)
.setPath("/dev/shm")
.build();