> Date: Fri, 13 Aug 2010 11:38:31 -0700
> Subject: Re: Questions from a friend that I didn't feel comfortable 
> answering...
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 

> >
> > 3.
> > Where can I find the
> > example of custom WritableByteArrayComparable and Comparator? How do I 
> > decide
> > which one to overwrite?
> 
> I don't understand this question in the context of HBase - you don't
> get the ability to choose a comparator for a table.  This is because
> rows from tables end up in META and thus you'd have to have multiple
> comparators in meta depending on which part of the table we'd be at.
> (ouch!)
> 

Hey! Thanks for the response!

In looking at the filter API...
SingleColumnValueFilter(byte[] family,
                        byte[] qualifier,
                        CompareFilter.CompareOp compareOp,
                        WritableByteArrayComparable comparator)



This is one of the constructors. So it looks like you can write your own class 
that extends the WritableByteArrayComparable abstract class.
So his question is which of the methods in the class does he have to overload?

Thx

-Mike
                                          

Reply via email to