Subject: Deleting a (contiguous) subset of the columns in a row


We've got a data model where columns have a logical association, and this is encoded into the column qualifiers by having each group be a contiguous range of qualifiers. For instance, columns with first byte 0x00, 0x01, 0x02 or 0x03 form group A and columns with first byte 0x04 or 0x05 form group B.

We'd like to efficiently delete just group A from a row, while leaving everything in group B, which currently seems to require two steps: read the row to find the column qualifiers that exist in group A (we can use a ColumnRangeFilter to at least ignore everything in group B), and then doing a delete after .addColumns-ing those qualifiers.

Is there a better way to do this? For instance, a similar way to apply filters to a delete?

---
Huon Wilson
CSIRO | Data61
https://www.data61.csiro.au