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

Use CellUtil.createFirstOnRow instead of KeyValueUtil.createFirstOnRow in some places.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      CellUtil.createFirstOnRow is more effective than KeyValueUtil.createFirstOnRow, because there is no byte[] copy.

      Current in ReversedRegionScannerImpl#nextRow, to get the previous row to seek, it use KeyValueUtil.createFirstOnRow which will have two copy, the first copy is copy to a tmp byte[], the second copy is in KeyValue. We can use CellUtil.createFirstOnRow which will have no copy.

      Attachments

        1. HBASE-16659-master.patch
          2 kB
          Lijin Bin
        2. HBASE-16659-master_v2.patch
          5 kB
          Lijin Bin
        3. HBASE-16659-master_v2.patch
          5 kB
          Lijin Bin

        Issue Links

          Activity

            People

              binlijin Lijin Bin
              binlijin Lijin Bin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: