hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharath Vissapragada <bhara...@cloudera.com>
Subject Re: Can I use the Thrift API to scan with filters?
Date Tue, 25 Nov 2014 02:06:19 GMT
Yes, you can. Did you try the scannerOpenWithScan() call? It takes a TScan
as input and you can build it with a filterString. Closest examples I could
find are [1] and [2]  but I believe its not difficult to extend these.

[1]
https://github.com/apache/hbase/blob/master/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServer.java#L540
[2]
https://github.com/apache/hbase/blob/master/hbase-examples/src/main/java/org/apache/hadoop/hbase/thrift/DemoClient.java#L64

On Tue, Nov 25, 2014 at 6:49 AM, Néstor Boscán <nestorjb@gmail.com> wrote:

> Hi
>
> I've been searching for Thrift Java API examples with filters but can't
> find any. Does the current Thrift API supports it?
>
> Regards,
>
> Néstor
>



-- 
Bharath Vissapragada
<http://www.cloudera.com>

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