Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0B57B5E1 for ; Wed, 4 Jan 2012 16:45:26 +0000 (UTC) Received: (qmail 1249 invoked by uid 500); 4 Jan 2012 16:45:26 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 1211 invoked by uid 500); 4 Jan 2012 16:45:26 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 1203 invoked by uid 99); 4 Jan 2012 16:45:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 16:45:26 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 16:45:24 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5E4AD138392 for ; Wed, 4 Jan 2012 16:44:39 +0000 (UTC) Date: Wed, 4 Jan 2012 16:44:39 +0000 (UTC) From: "Brandon Williams (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1469344604.5156.1325695479387.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1528443057.43072.1324668030674.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-3669) [patch] Word count sample has a flawed addToMutationMap, fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Williams updated CASSANDRA-3669: ---------------------------------------- Reviewer: brandon.williams Fix Version/s: 1.0.7 Assignee: Dave Brosius > [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 > Assignee: Dave Brosius > Priority: Trivial > Fix For: 1.0.7 > > 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