setFilter for Delete operations?

2014-12-24 Thread Devaraja Swami
Are there any plans for including a Filter for Delete? Currently, the only way seems to be via checkAndDelete in HTable/Table. This is helpful but does not cover all use cases. For e.g., I use column qualifier prefixes as a sort of poor man's 2rd level of indexing (i.e, 3 levels of indexing

Re: setFilter for Delete operations?

2014-12-24 Thread Ted Yu
Have you looked at hbase-examples/src/main/java/org/apache/hadoop/hbase/coprocessor/example/BulkDeleteEndpoint.java to see if it fits your need ? Cheers On Wed, Dec 24, 2014 at 1:34 PM, Devaraja Swami devarajasw...@gmail.com wrote: Are there any plans for including a Filter for Delete?

Re: setFilter for Delete operations?

2014-12-24 Thread Devaraja Swami
Thanks for your reply, Ted. I looked into the coprocessor example you provided. It will definitely address my specific need. However, two aspects of this approach seem less than ideal to me: 1. Being a coprocessor service, I believe the endpoint needs to be pre-installed on the region servers.

Re: setFilter for Delete operations?

2014-12-24 Thread Ted Yu
bq. Using a scan for just one known row Can you batch some deletions in one invocation of the endpoint ? Supporting filter in the delete path requires non-trivial amount of work. So for the time being, please use BulkDeleteEndpoint. Cheers On Wed, Dec 24, 2014 at 6:23 PM, Devaraja Swami

Re: setFilter for Delete operations?

2014-12-24 Thread Devaraja Swami
Thanks, Ted. I can work around my problem by changing other aspects of my application. Worst case, I can use the BulkDeleteEndpoint and batch up my deletes like you said. It's just that the lack of filters in the Delete makes me adjust my data model and data access approaches often. I understand