Review Board 1.7.22


Coprocessors: Support aggregate functions

Review Request #585 - Created April 12, 2011 and updated

Ted Yu
trunk
HBASE-1512
Reviewers
hbase
ghelmling
hbase
This patch provides reference implementation for aggregate function support through Coprocessor framework.
ColumnInterpreter interface allows client to specify how the value's byte array is interpreted.
Some of the thoughts are summarized at http://zhihongyu.blogspot.com/2011/03/genericizing-endpointcoprocessor.html

Himanshu Vashishtha started the work. I provided some review comments and some of the code.
TestAggFunctions passes.
Review request changed
Updated (April 25, 2011, 7:53 p.m.)
Changes as per Stack's review.
Major changes include:
a) LongColumnInterpreter still implements Writable (though with empty read/write methods).
b) Exception is thrown in case of more than one family is defined.
Posted (April 25, 2011, 7:56 p.m.)

   

  
I am fine with using Writable.