You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by anil gupta <an...@gmail.com> on 2014/08/06 05:36:03 UTC
Is there a way to convert ClientProtos.Result to Result?
Is there a way to convert ClientProtos.Result object to
org.apache.hadoop.hbase.client.Result?
I am a Protobuf newbie. It is ok for now if the technique is not highly
efficient.
--
Thanks & Regards,
Anil Gupta
Re: Is there a way to convert ClientProtos.Result to Result?
Posted by anil gupta <an...@gmail.com>.
Hi Ted,
ProtobufUtil is a life saver. Thanks a lot for quick help.
~Anil
On Tue, Aug 5, 2014 at 8:45 PM, Ted Yu <yu...@gmail.com> wrote:
> Take a look at the following method in ProtobufUtil :
>
> public static Result toResult(final ClientProtos.Result proto) {
>
> Cheers
>
>
> On Tue, Aug 5, 2014 at 8:36 PM, anil gupta <an...@gmail.com> wrote:
>
> > Is there a way to convert ClientProtos.Result object to
> > org.apache.hadoop.hbase.client.Result?
> > I am a Protobuf newbie. It is ok for now if the technique is not highly
> > efficient.
> >
> > --
> > Thanks & Regards,
> > Anil Gupta
> >
>
--
Thanks & Regards,
Anil Gupta
Re: Is there a way to convert ClientProtos.Result to Result?
Posted by Ted Yu <yu...@gmail.com>.
Take a look at the following method in ProtobufUtil :
public static Result toResult(final ClientProtos.Result proto) {
Cheers
On Tue, Aug 5, 2014 at 8:36 PM, anil gupta <an...@gmail.com> wrote:
> Is there a way to convert ClientProtos.Result object to
> org.apache.hadoop.hbase.client.Result?
> I am a Protobuf newbie. It is ok for now if the technique is not highly
> efficient.
>
> --
> Thanks & Regards,
> Anil Gupta
>