Looking at src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java:
    public int scannerOpenWithPrefix(ByteBuffer tableName,
                                     ByteBuffer startAndPrefix,
                                     List<ByteBuffer> columns)

Would the above API satisfy Oleg's requirement ?

On Wed, Feb 8, 2012 at 5:25 AM, Wojciech Langiewicz
<[email protected]>wrote:

> Hi,
> AFAIK this is not possible, unless you are using HBase 0.92 with
> coprocessors ( https://blogs.apache.org/**hbase/entry/coprocessor_**
> introduction<https://blogs.apache.org/hbase/entry/coprocessor_introduction>), 
> but even then I really doubt this feature will be included in Thrift API
> - my experience shows, that Thrift APIa are not up-to-date with features
> that HBase has.
>
>
>
> On 08.02.2012 14:10, Oleg Mürk wrote:
>
>> Hello,
>>
>> I would like to ask if it is possible to count rows matching a given
>> prefix in a HBase table using Python Thrift API?
>> Currently I have to fetch all these rows and then count them.
>>
>> Thank You!
>> Oleg Mürk
>>
>
> --
> Wojciech Langiewicz
>

Reply via email to