hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J├╝rgen Kaatz <ka...@etracker.com>
Subject Hbase with ColumnValueFilter via thrift/php
Date Wed, 01 Jul 2009 13:14:37 GMT
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