hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beeshma r <beeshm...@gmail.com>
Subject Re: Hbase Row Key Scan
Date Tue, 24 Nov 2015 04:04:08 GMT
HI

You can use prefixfilter class while scan




On Thu, Nov 19, 2015 at 10:25 AM, dheeraj kavalur <
dheerajkavalur50@gmail.com> wrote:

> Hi,
>
> Can someone help how to query on partial rowkey.
>
> *Table Name :* URLdata
>
>
> *Column Family:* BaseID
>
>
> *Columns:*1.       userId
>
> 2.       userIdType
>
> 3.       username
>
> 4.       country
>
> *RowKey Design :*
>
>                                userId | useridType|country  (Pipe separated
> columns concatenated)
>
>
> *Requirement*: :
>
> ยท                                                       Count Distinct
> (userId| useridType) combination from the table.
>                             Have to do partial scan (read ) on the
> composite rowkey.
>
>                         The count has to been done on Map-side only by
> reading partial key and actual userid from column in hbase and count the
> distinct.
>



--

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