cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-3669) [patch] Word count sample has a flawed addToMutationMap, fix
Date Fri, 23 Dec 2011 19:20:30 GMT

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

Dave Brosius updated CASSANDRA-3669:
------------------------------------

    Attachment: mutation_sample.diff
    
> [patch] Word count sample has a flawed addToMutationMap, fix
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-3669
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3669
>             Project: Cassandra
>          Issue Type: Improvement
>    Affects Versions: 1.0.6
>            Reporter: Dave Brosius
>            Priority: Trivial
>         Attachments: mutation_sample.diff
>
>
> The WordCount example shows how to use client.batch_mutate, and has a helper method for
building a mutation map. While the example works properly, the example addToMutationMap is
flawed in that it won't allow adding of multiple columns to the same row, as is what is needed
to perform a 'sql like insert' operation, which is the most likely example someone learning
cassandra will want to do. Fixed the sample addToMutationMap code so that it works correctly
for multi column inserts in one 'row'.

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

        

Mime
View raw message