hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramkrishna.S.Vasudevan" <ramkrishna.vasude...@huawei.com>
Subject RE: Recognising row creation and deletion in a co-processor
Date Mon, 24 Sep 2012 13:56:23 GMT
For deletion I think we need to first delete on the main table, get the rowkeys that got deleted
and apply them on the index table i.e form the deletes.

Here we may have to take care of different deletes like delete, deleteColumn and deleteColumnWithVersions.

Grouping of the deletes based on timestamp may be needed if delete or deleteColumn is specified.


> -----Original Message-----
> From: Jeroen Hoek [mailto:jeroen@lable.org]
> Sent: Monday, September 24, 2012 7:10 PM
> To: user@hbase.apache.org
> Subject: Recognising row creation and deletion in a co-processor
> From what I can tell, a fairly simple way to maintain a secondary
> index table in HBase is to write a co-processor that acts on the
> postDelete and postPut hooks of the table it is indexing for;
> maintaining the index as rows get deleted and inserted.
> For a Put it really doesn't matter if a row is new or just updated,
> the indexer can simply do a Put itself; it doesn't matter if the row
> was already indexed, it will just get updated. But what about Delete?
> Is there a recommend way of detecting row deletion from the Delete
> object supplied to the co-processor? Or is this approach the wrong way
> entirely?
> Kind regards,
> Jeroen Hoek
> Lable

View raw message