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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 2.0.0
    • None
    • None
    • 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.005.patch
          22 kB
          Xiang Li
        2. HBASE-14882.master.004.patch
          24 kB
          Xiang Li
        3. HBASE-14882.master.003.patch
          18 kB
          Xiang Li
        4. HBASE-14882.master.002.patch
          16 kB
          Xiang Li
        5. HBASE-14882.master.001.patch
          7 kB
          Xiang Li
        6. HBASE-14882.master.000.patch
          8 kB
          Xiang Li

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: