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 (Updated) (JIRA)" <ji...@apache.org> on 2012/02/11 01:13:00 UTC

[jira] [Updated] (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 updated GORA-81:
-------------------------------------

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

  was: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 InferringTypeSerializer can be used instead in order to take advantage of when the value is already of type ByteBuffer.

        Summary: Replace CassandraStore#addOrUpdateField with TypeInferringSerializer to take advantage of when the value is already of type ByteBuffer.  (was: Replace CassandraStore#addOrUpdateField with InferringTypeSerializer to take advantage of when the value is already of type ByteBuffer.)
    
> 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.2
>
>
> 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