Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-803

Atomic increment operations

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Discussion was already started in HBASE-798

      First version will contain to additional HTable methods:

      incrementColumnValue(table,row,family:column) -> Inserts a new version of the specified column (which must already exist) with an incremented cell value.

      incrementFamilyColumn(table,row,family: ) -> Inserts a new column under the specified family. This assumes the family always contains only one column. That column is read, incremented, deleted, and a new column is inserted with the incremented column name. The existing value is re-inserted unchanged to the new column.

      I'm going to be making even more specialized versions of these for internal use (taking apart byte[]'s, doing different bit/byte operations, and assorted munging...). So if anyone has any requests for other specialized versions, or more generic versions, please post them here and I'd be more than happy to take a stab at them.

      Next week I will likely have a go at HBASE-493

      Attachments

        1. hbase-803-v1.patch
          7 kB
          Jonathan Gray
        2. HBASE-803.patch
          11 kB
          ryan rawson
        3. HBASE-803-v2.patch
          11 kB
          ryan rawson
        4. HBASE-803-v3-0.19.patch
          11 kB
          Jonathan Gray
        5. HBASE-803-v3-0.20.patch
          11 kB
          Jonathan Gray
        6. HBASE-803-v3.patch
          12 kB
          ryan rawson
        7. HBASE-803-crash-bug.patch
          1 kB
          ryan rawson

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ryanobjc ryan rawson
            streamy Jonathan Gray
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment