You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
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 = newDatabase.Builder<ByteBuffer, ByteBuffer>(ENGINE)
.setSize(1073741824)
.setPath("/dev/shm")
.build();
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: