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

Provide a Put API that adds the provided family, qualifier, value without copying

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In the Put API, we have addImmutable()

       /**
         * See {@link #addColumn(byte[], byte[], byte[])}. This version expects
         * that the underlying arrays won't change. It's intended
         * for usage internal HBase to and for advanced client applications.
         */
        public Put addImmutable(byte [] family, byte [] qualifier, byte [] value)
      

      But in the implementation, the family, qualifier and value are still being copied locally to create kv.

      Hopefully we should provide an API that truly uses immutable family, qualifier and value.

        Attachments

        1. HBASE-14882.master.000.patch
          8 kB
          Xiang Li
        2. HBASE-14882.master.001.patch
          7 kB
          Xiang Li
        3. HBASE-14882.master.002.patch
          16 kB
          Xiang Li
        4. HBASE-14882.master.003.patch
          18 kB
          Xiang Li
        5. HBASE-14882.master.004.patch
          24 kB
          Xiang Li
        6. HBASE-14882.master.005.patch
          22 kB
          Xiang Li

          Issue Links

            Activity

              People

              • Assignee:
                xiangli Xiang Li
                Reporter:
                jinghe Jerry He
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: