[
https://issues.apache.org/jira/browse/HBASE-19092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16221242#comment-16221242
]
Vrushali C commented on HBASE-19092:
------------------------------------
So here is what we use in Timeline Service
We import {code} org.apache.hadoop.hbase.Tag {code} and {code}
org.apache.hadoop.hbase.CellUtil {code}
We use these apis to interact with Tags:
- constructor: {code} Tag(byte tagType, byte[] tag) {code}
- Tags.asList API: {code} List<Tag> tags = Tag.asList(cell.getTagsArray(),
cell.getTagsOffset(), cell.getTagsLength()) {code}
- Tag.fromList API: {code} byte[] tagByteArray = Tag.fromList(tags) {code}
- The createCell API from CellUtil to create cells with Tags: {code}
public static Cell createCell(final byte[] row, final byte[] family, final
byte[] qualifier, final long timestamp, Type type, final byte[] value, byte[]
tags) {code}
> Make Tag IA.LimitedPrivate and expose for CPs
> ---------------------------------------------
>
> Key: HBASE-19092
> URL: https://issues.apache.org/jira/browse/HBASE-19092
> Project: HBase
> Issue Type: Sub-task
> Components: Coprocessors
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
> Priority: Critical
> Fix For: 2.0.0-alpha-4
>
> Attachments: HBASE-19092-branch-2.patch
>
>
> We need to make tags as LimitedPrivate as some use cases are trying to use
> tags like timeline server. The same topic was discussed in dev@ and also in
> HBASE-18995.
> Shall we target this for beta1 - cc [[email protected]].
> So once we do this all related Util methods and APIs should also move to
> LimitedPrivate Util classes.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)