[
https://issues.apache.org/jira/browse/GORA-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280504#comment-13280504
]
Kazuomi Kashii commented on GORA-132:
-------------------------------------
In my understanding, it is technically wrong to encode/decode any data type
other than String (sequence of Unicode characters) to/from ByteBuffer
(basically equal to byte array).
It is related to GORA-139. If using UTF8Type as validator, some byte sequence
may be failed on validation as UTF8 sequence, so it causes an exception.
> Uses ByteBufferSerializer for column value to support various data types
> rather than StringSerializer
> -----------------------------------------------------------------------------------------------------
>
> Key: GORA-132
> URL: https://issues.apache.org/jira/browse/GORA-132
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Affects Versions: 0.2
> Reporter: Kazuomi Kashii
> Fix For: 0.3
>
> Attachments: GORA-131-132-v2.patch, GORA-131-132-v2.patch,
> GORA-131-132.patch
>
>
> When I made a patch to GORA-131, I noticed that gora-cassandra uses
> StringSerializer for column value.
> However, since it needs to support various value types, I think ByteBuffer is
> better than String to/from Hector,
> and gora-cassandra layer should convert values between Gora data bean value
> type and ByteBuffer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira