devshorts
devshorts

Reputation: 8872

Cassandra custom type mapping?

I'd like to be able to do a custom serialization/deserialization of raw types with cassandra without needing to make UDT. Basically I want to store a string column, but have it automatically deserialized into a String wrapper value I have. Is there any way to hook into the cassandra mapping code? I looked through it and I didn't see a particular opening where to put in a custom mapper.

Upvotes: 2

Views: 719

Answers (1)

adutra
adutra

Reputation: 4526

Currently, it is not possible to plug in a custom mapping mechanism into the Java driver, but JAVA-721 is scheduled for 2.1.7 and will probably bring you the ability you are looking for.

Upvotes: 3

Related Questions