You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2016/12/02 08:41:58 UTC

[jira] [Created] (HBASE-17239) Add UnsafeByteOperations#wrap(ByteInput, int offset, int len) API

ramkrishna.s.vasudevan created HBASE-17239:
----------------------------------------------

             Summary: Add UnsafeByteOperations#wrap(ByteInput, int offset, int len) API
                 Key: HBASE-17239
                 URL: https://issues.apache.org/jira/browse/HBASE-17239
             Project: HBase
          Issue Type: Improvement
          Components: Protobufs
    Affects Versions: 2.0.0
            Reporter: ramkrishna.s.vasudevan
            Assignee: ramkrishna.s.vasudevan
             Fix For: 2.0.0


Instead of exposing the newInstance(ByteInput, boolean) in CIS we could just add a UnsafeByteOperations#wrap(ByteInput, offset, len). And we could just call that and do a #newcodedInput() over that. So internally we do return a immutable version of the ByteInput only. This way we can avoid CIS#newInstance(ByteInput) exposure and can keep it package private as done in COS. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)