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

Make use of UnsafeByteOperations#unsafeWrap(ByteBuffer buffer) in PBUtil#toCell(Cell cell)

    XMLWordPrintableJSON

Details

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

    Description

      Since we now have support for BBs in UnsafeByteOperations#unsafeWrap(ByteBuffer) . So for the non - java clients while creating the PB result we could avoid the copy to an temp array.
      Since we have a support to write to BB in ByteOutput having a result backed by Bytebuffer should be fine.

      Attachments

        1. HBASE-17191.patch
          7 kB
          ramkrishna.s.vasudevan
        2. HBASE-17191_1.patch
          7 kB
          ramkrishna.s.vasudevan

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            ram_krish ramkrishna.s.vasudevan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: