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

the use cases in doc should use Cell instead of KeyValue

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1
    • documentation

    Description

      the describe of KeyValue:

      ...

      • HBase applications and users should use the Cell interface and avoid directly using KeyValue and
      • member functions not defined in Cell.
        ...

      for example,the use case of ColumnRangeFilter:

      ...
      ResultScanner rs = t.getScanner(scan);
      for (Result r = rs.next(); r != null; r = rs.next()) {
      for (KeyValue kv : r.raw())

      { // each kv represents a column }

      }
      ...

      Attachments

        1. HBASE-21918.patch
          3 kB
          Zheng Wang

        Activity

          People

            filtertip Zheng Wang
            filtertip Zheng Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: