You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jerry He (JIRA)" <ji...@apache.org> on 2015/12/01 05:21:11 UTC
[jira] [Commented] (HBASE-14882) Provide a Put API that adds the
provided family, qualifier, value without coping
[ https://issues.apache.org/jira/browse/HBASE-14882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15033044#comment-15033044 ]
Jerry He commented on HBASE-14882:
----------------------------------
I looked at the existing Cell subclass implementations. There does not seem to be one that can be readily used for this JIRA's purpose.
We need to provide a new subclass implementation that basically takes and keep all the input byte arrays.
Right thing to do [~anoop.hbase]? If yes, I will provide a patch.
> Provide a Put API that adds the provided family, qualifier, value without coping
> --------------------------------------------------------------------------------
>
> Key: HBASE-14882
> URL: https://issues.apache.org/jira/browse/HBASE-14882
> Project: HBase
> Issue Type: Improvement
> Reporter: Jerry He
>
> In the Put API, we have addImmutable()
> {code}
> /**
> * 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)
> {code}
> But in the implementation the row, family. qualifier and value are still being copied locally to create kv.
> Hopefully we should provide an API that truely uses immutable family, qualifier and value.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)