hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Stepachev <oct...@gmail.com>
Subject Re: Composite Row Key and Partial Matching
Date Thu, 16 Sep 2010 12:29:41 GMT
DateTime easy, scan [DateTime;DateTime+1]

for  DateTime_xxxxx_ProductName use row filter
or FilterSet to compose predicate for server side filtering. CompareOp
can be any of

Of cources you should also make correct scan (because filters only
filter data, and don't restrict scan)
For example above you should make scan [DateTime;DateTime+1]

2010/9/15 Shuja Rehman <shujamughal@gmail.com>:
> Hi
> I am using thrift to get data from remote hbase and using
> client.get(tableName.getBytes(), rowKey.getBytes(),
> "ColFamily:colName".getBytes()); method to get the data for particular
> columns. I am using composite row key in the format of *
> DataTime_CategoryName_ProductName*. Now my question is that can i get the
> data with partial key. e.g if I just want to get data with Particular
> dateTime only or Particular DateTime_xxxxx_ProductName where category does
> not needs to use.
> Kindly share your thoughts
> Thanks
> --
> Regards
> Shuja-ur-Rehman Baig
> http://pk.linkedin.com/in/shujamughal
> Cell: +92 3214207445

View raw message