On Tue, Mar 9, 2010 at 2:36 PM, Igor Katkov <[email protected]> wrote: > Hi, > > I have a question wrt org.apache.hadoop.hbase.filter > In what order KeyValue are passed into the filter? into Filter.ReturnCode > filterKeyValue(KeyValue v) > Is it the same order columns were added into the row? Reversed that? >
How content is passed via the filter is unrelated to the order in which columns were added. High-level, we set up a Heap made from memstore and all storefiles that make up the region. We pull from the heap the keyvalue that sorts lowest alphanumerically and pass it through the filter first. See the code in http://su.pr/2ZxRE1. Its not too easy to follow but you should get the idea. Thanks, St.Ack
