[
https://issues.apache.org/jira/browse/HBASE-8496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ramkrishna.s.vasudevan updated HBASE-8496:
------------------------------------------
Release Note:
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.
> Implement tags and the internals of how a tag should look like
> --------------------------------------------------------------
>
> Key: HBASE-8496
> URL: https://issues.apache.org/jira/browse/HBASE-8496
> Project: HBase
> Issue Type: New Feature
> Affects Versions: 0.98.0, 0.95.2
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
> Priority: Critical
> Fix For: 0.98.0
>
> Attachments: Comparison.pdf, HBASE-8496_2.patch, HBASE-8496_3.patch,
> HBASE-8496_3.patch, HBASE-8496_3.patch, HBASE-8496_4.patch,
> HBASE-8496_5.patch, HBASE-8496_6.patch, HBASE-8496.patch,
> Performance_report.xlsx, Tag design.pdf, Tag design_updated.pdf,
> Tag_In_KV_Buffer_For_reference.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.1#6144)