Re: Can we store a HBase Result object using Put

2012-05-23 Thread Alex Baranau
I saw the need for such converting many times before. Should we add it as a public method in some utility class? (create JIRA for that?) Alex Baranau -- Sematext :: http://blog.sematext.com/ On Mon, May 21, 2012 at 4:26 PM, Jean-Daniel Cryans wrote: > How exactly are you building the Put? It

Re: Can we store a HBase Result object using Put

2012-05-21 Thread Jean-Daniel Cryans
How exactly are you building the Put? It doesn't have a constructor that can take byte[] and figure out how it should use it, it only takes a row key (meaning that if you do new Put(Result.getBytes().get()), you're passing the whole thing as a row key which is wrong). In the HBase code we do the R

Can we store a HBase Result object using Put

2012-05-21 Thread Shahsikant Jain
Hi, I am trying to store a result that I got out of some scan into another Hbase table so that I can read it back via Get and reconstruct. This is what I am doing 1. Result.getBytes().get() -- Get the byte[] and do a Put in HBase 2. Then do a get and read the bytes[] as new Result(new Immuta