You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2012/06/01 15:26:23 UTC

[jira] [Resolved] (GORA-81) Replace CassandraStore#addOrUpdateField with TypeInferringSerializer to take advantage of when the value is already of type ByteBuffer.

     [ https://issues.apache.org/jira/browse/GORA-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lewis John McGibbney resolved GORA-81.
--------------------------------------

    Resolution: Fixed

Committed @revision 1345164 in trunk
Thanks for the patch Kazuomi great work.
                
> Replace CassandraStore#addOrUpdateField with TypeInferringSerializer to take advantage of when the value is already of type ByteBuffer.
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GORA-81
>                 URL: https://issues.apache.org/jira/browse/GORA-81
>             Project: Apache Gora
>          Issue Type: Sub-task
>          Components: storage-cassandra
>            Reporter: Lewis John McGibbney
>             Fix For: 0.3
>
>
> Currently CassandraStore#addOrUpdateField contains a switch statement to evaluate different types of column values but in the end the cassandraClient object ends up converting to the value to type string anyway. The TypeInferringSerializer [1] can be used instead in order to take advantage of when the value is already of type ByteBuffer.
> [1] https://github.com/rantav/hector/blob/master/core/src/main/java/me/prettyprint/cassandra/serializers/TypeInferringSerializer.java

--
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