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

Harmonize the Get and Delete operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.99.2
    • Client
    • None
    • Reviewed
    • Align Delete class with Get class. Change all delete* method names to add* instead. For example, change deleteColumn to addColumn (as in add-this-column to the Delete specification). Deprecate the old.

    Description

      In my work on HBASE-2400, implementing deletes for the Avro server felt quite awkward. Rather than the clean API of the Get object, which allows restrictions on the result set from a row to be expressed with addColumn, addFamily, setTimeStamp, setTimeRange, setMaxVersions, and setFilters, the Delete object hides these semantics behind various constructors to deleteColumn[s] an deleteFamily. From my naive vantage point, I see no reason why it would be a bad idea to mimic the Get API exactly, though I could quite possibly be missing something. Thoughts?

      Attachments

        1. 2609.txt
          6 kB
          Michael Stack
        2. 2609v2.txt
          7 kB
          Michael Stack

        Issue Links

          Activity

            People

              stack Michael Stack
              hammer Jeff Hammerbacher
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: