hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Gruben <tgru...@gmail.com>
Subject Re: Result of postIncrement
Date Thu, 27 Mar 2014 19:29:22 GMT
Haven't tried that, I'll give it a go.

I running version 0.96.1.1-cdh5.0.0-beta-2.


cheers,


On Thu, Mar 27, 2014 at 2:23 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> In the for loop, have you tried using this method from KeyValueUtil ?
>
>   public static KeyValue ensureKeyValue(final Cell cell) {
>
> Which hbase version are you using ?
>
>
> Cheers
>
>
> On Thu, Mar 27, 2014 at 12:01 PM, Todd Gruben <tgruben@gmail.com> wrote:
>
> >  I am trying to get the value of the column I just incremented
> > and I can't seem to find it..
> >
> > Here is a snippet of what I am trying...
> >
> > for(Cell cell:result.rawCells()) {
> >                                 byte[] result_key =
> > CellUtil.cloneQualifier(cell);
> >                                 byte[] value = CellUtil.cloneValue(cell);
> >
> >
> > Bytes.toString(result_key); ///this is the correct key
> >  Bytes.toString(value));//value should be 1, nothing here
> > value // prints out B@19740a2a in the log
> >
> > Anyone have any ideas?
> >
> > -Todd
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message