hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Result of postIncrement
Date Thu, 27 Mar 2014 19:23:59 GMT
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