You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Igor Katkov <ik...@gmail.com> on 2010/03/09 23:36:29 UTC

column order

 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?

Re: column order

Posted by Stack <st...@duboce.net>.
On Tue, Mar 9, 2010 at 2:36 PM, Igor Katkov <ik...@gmail.com> 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