2

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.

1 Answer 1

3

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.

3
  • 1
    FYI JAVA-721 couldn't make into 2.1.7 but has been included in 2.2.0-rc2, which has been released today.
    – adutra
    Jul 28, 2015 at 12:01
  • What's the release cycle for release candidates? Is -rc2 stable to go to prod with?
    – devshorts
    Jul 28, 2015 at 15:45
  • No, you should wait until 2.2.0 goes GA before going to prod with it. On the other hand we do want our users to test 2.2.0-rc2 as much as they can, specially custom codecs, so that we get all the feedback we can before going GA.
    – adutra
    Jul 29, 2015 at 18:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.