hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Haidinyak" <javam...@cox.net>
Subject Re: Getting the Row Key from a Scan
Date Tue, 28 Dec 2010 08:02:14 GMT
One would think the method would be called 'getRowKey' instead of getRow.

-Pete

On Mon, 27 Dec 2010 23:58:42 -0800, Ryan Rawson <ryanobjc@gmail.com> wrote:

> you got it!!!
>
> On Mon, Dec 27, 2010 at 11:51 PM, Pete Haidinyak <javamann@cox.net>  
> wrote:
>> Ah, so, it's the getRow which returns a byte array which is the actual  
>> Row
>> Key.
>>
>> Thanks
>>
>> -Pete
>>
>> On Mon, 27 Dec 2010 23:42:58 -0800, Ryan Rawson <ryanobjc@gmail.com>  
>> wrote:
>>
>>> During a scan, each iteration of Scanner.next() returns a Result
>>> object which gives you the row key.  Check the javadoc!
>>>
>>> -ryan
>>>
>>> On Mon, Dec 27, 2010 at 11:40 PM, Pete Haidinyak <javamann@cox.net>  
>>> wrote:
>>>>
>>>> Hi,
>>>>  Is there a way to get the Row Key for the result from a Scanner? I've
>>>> seen
>>>> examples where you get the bytes for the row and extract the row key  
>>>> from
>>>> there but my keys are of random lenght.
>>>>
>>>> Thanks
>>>>
>>>> -Pete
>>>>
>>>>
>>
>>


Mime
View raw message