HI

You can use prefixfilter class while scan




On Thu, Nov 19, 2015 at 10:25 AM, dheeraj kavalur <
[email protected]> 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.
>



--

Reply via email to