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

Implement tags and the internals of how a tag should look like

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.98.0, 0.95.2
    • 0.98.0
    • None
    • None
    • Incompatible change, Reviewed
    • Hide
      Tags are additional metadata to be added with the KVs.
      To enable the tags to be persisted in the HFiles, V3 version of HFile should be used.
      <property>
            <name>hfile.format.version</name>
            <value>3</value>
        </property>
      The tags has the below format
      <2 byte tag length><1 byte type code><tag>
      where <type> is the type of the tag, <tag> is a byte[] that has the tag data.
      To add Tags using Puts
      Put.add(byte[] family, byte [] qualifier, byte [] value, Tag[] tag)
      Put.add(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tag)
      Can be used.
      Note that even after changing the version to V3, the no-tag case will also be working fine as in V2 format.
      Show
      Tags are additional metadata to be added with the KVs. To enable the tags to be persisted in the HFiles, V3 version of HFile should be used. <property>       <name>hfile.format.version</name>       <value>3</value>   </property> The tags has the below format <2 byte tag length><1 byte type code><tag> where <type> is the type of the tag, <tag> is a byte[] that has the tag data. To add Tags using Puts Put.add(byte[] family, byte [] qualifier, byte [] value, Tag[] tag) Put.add(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tag) Can be used. Note that even after changing the version to V3, the no-tag case will also be working fine as in V2 format.

    Description

      The intent of this JIRA comes from HBASE-7897.
      This would help us to decide on the structure and format of how the tags should look like.

      Attachments

        1. Tag design.pdf
          118 kB
          ramkrishna.s.vasudevan
        2. Tag design_updated.pdf
          46 kB
          ramkrishna.s.vasudevan
        3. Tag_In_KV_Buffer_For_reference.patch
          303 kB
          ramkrishna.s.vasudevan
        4. Performance_report.xlsx
          28 kB
          ramkrishna.s.vasudevan
        5. HBASE-8496.patch
          337 kB
          ramkrishna.s.vasudevan
        6. HBASE-8496_6.patch
          582 kB
          ramkrishna.s.vasudevan
        7. HBASE-8496_5.patch
          582 kB
          ramkrishna.s.vasudevan
        8. HBASE-8496_4.patch
          579 kB
          ramkrishna.s.vasudevan
        9. HBASE-8496_3.patch
          579 kB
          ramkrishna.s.vasudevan
        10. HBASE-8496_3.patch
          579 kB
          ramkrishna.s.vasudevan
        11. HBASE-8496_3.patch
          579 kB
          ramkrishna.s.vasudevan
        12. HBASE-8496_2.patch
          336 kB
          ramkrishna.s.vasudevan
        13. Comparison.pdf
          50 kB
          ramkrishna.s.vasudevan

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: