[
https://issues.apache.org/jira/browse/HBASE-7413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639729#comment-13639729
]
Sergey Shelukhin commented on HBASE-7413:
-----------------------------------------
Btw, there's package private newCodedOutput method on ByteString which allows
you to create a stream to write to w/a fixed size, and create a bytestring
without copies. Caveat: size has to be known in advance, so applicability may
be rather limited... And, we'd have to call package-private method. We can also
wrap ByteString and rip a ctor out, judging from forum responses from Google PB
people the limitation is there to make sure ByteString is immutable, and that
is only there for logical reasons, to prevent people from doing stupid things.
So we can just do it :) Granted, it would be an ugly hacky thing to do.
> Convert WAL to pb
> -----------------
>
> Key: HBASE-7413
> URL: https://issues.apache.org/jira/browse/HBASE-7413
> Project: HBase
> Issue Type: Sub-task
> Components: wal
> Reporter: stack
> Assignee: Sergey Shelukhin
> Priority: Critical
> Fix For: 0.95.1
>
> Attachments: HBASE-7413-v0.patch, HBASE-7413-v1.patch,
> HBASE-7413-v2.patch
>
>
> From HBASE-7201
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira