Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-3669

[patch] Word count sample has a flawed addToMutationMap, fix

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.7
    • None
    • None

    Description

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

      Attachments

        1. mutation_sample.diff
          1 kB
          Dave Brosius

        Activity

          People

            dbrosius David Brosius
            dbrosius@apache.org Dave Brosius
            David Brosius
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: