Hi all,
I am trying to support hbase Increment and checkAndPut/checkAndDelete in
phoenix and have done with Increment by introducing a new statement INCREMENT.
Grammar:
INCREMENT tableName (column defs) VALUES(....) where expressions
Because all increment operations can be stored in a single Increment object
which can be committed by Table#batch(), it is not hard to do the job.
But for checkAndPut/checkAndDelete, there isn't such a class that holds the
conditions and values at the same time. And for the existed write path, all
methods and data structures are
used to generate List<Mutation>, it is hard to add a new data type to the
write path. So I have to create a new write path.
May someone give me some advice or solutions?
Thanks.
William