hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Gray" <jl...@streamy.com>
Subject Re: Hbase with ColumnValueFilter via thrift/php
Date Wed, 01 Jul 2009 15:25:17 GMT
Juergen,

I'm not a big user of the thrift interface, but to my knowledge there is
no integration with user-defined filters like the ColumnValueFilter.

I don't see a reason that this would be impossible, just has not been
implemented.

JG

On Wed, July 1, 2009 6:14 am, J├╝rgen Kaatz wrote:
> Hi,
>
>
> I'm very new to Hbase and try to read the Thrift Hbase implementation and
> the Java API. On the Java API there is a filter for dedicated column
> values. Is there also an implementation via Thrift/PHP or what else can
> I do to grep dedicated columns values from a list of rows?
>
>
> Example:
>
>
> hbase(main):206:0> scan 'cc_attributes'
> ROW                          COLUMN+CELL
> 12345                       column=attributes:keyword,
> timestamp=1246451867154, value=etracker 12345
> column=attributes:referer, timestamp=1246451854424, value=www.google.de
> 12345                       column=attributes:typ,
> timestamp=1246451843751, value=SEM 67890
> column=attributes:keyword, timestamp=1246453948765, value=etracker
> 67890                       column=attributes:referer,
> timestamp=1246453938366, value=www.yahoo.de 67890
> column=attributes:typ, timestamp=1246453926492, value=SEM
> 6 row(s) in 0.0092 seconds
>
>
> hbase(main):207:0> scan 'cc_attributes', {COLUMNS =>
> ['attributes:referer', 'attributes:typ']}
> ROW                          COLUMN+CELL
> 12345                       column=attributes:referer,
> timestamp=1246451854424, value=www.google.de 12345
> column=attributes:typ, timestamp=1246451843751, value=SEM
> 67890                       column=attributes:referer,
> timestamp=1246453938366, value=www.yahoo.de 67890
> column=attributes:typ, timestamp=1246453926492, value=SEM
> 4 row(s) in 0.0164 seconds
>
>
> => is there a possibility to 'select' only the rows with 'www.google.de'?
> I assume this must be work with the Java 'ColumnValueFilter'
>
>
> Juergen
>
>
>
>


Mime
View raw message