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

FEAT: Automatic deduction of Converter class #111

@karczex

Description

@karczex

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();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions