Re: Is it possible to implement a NOT filter in Hbase?

2017-01-09 Thread Ted Yu
> De: Ted Yu > Enviado: lunes, 02 de enero de 2017 11:36 p.m. > Para: user@hbase.apache.org > Asunto: Re: Is it possible to implement a NOT filter in Hbase? > > There is INCLUDE_AND_SEEK_NEXT_ROW which was not accounted for in the > nested if st

Re: Is it possible to implement a NOT filter in Hbase?

2017-01-09 Thread Carl M
's working, so thanks again for that! Best, De: Ted Yu Enviado: lunes, 02 de enero de 2017 11:36 p.m. Para: user@hbase.apache.org Asunto: Re: Is it possible to implement a NOT filter in Hbase? There is INCLUDE_AND_SEEK_NEXT_ROW which was not accounted for i

Re: Is it possible to implement a NOT filter in Hbase?

2017-01-02 Thread Ted Yu
> Thanks for your response Ted. > > > I did the change, unfortunately it doesn't make any difference. > > > Best, > > > De: Ted Yu > Enviado: lunes, 02 de enero de 2017 07:58 p.m. > Para: user@hbase.apache.org > Asunto:

Re: Is it possible to implement a NOT filter in Hbase?

2017-01-02 Thread Carl M
Thanks for your response Ted. I did the change, unfortunately it doesn't make any difference. Best, De: Ted Yu Enviado: lunes, 02 de enero de 2017 07:58 p.m. Para: user@hbase.apache.org Asunto: Re: Is it possible to implement a NOT filter in Hbase? I

Re: Is it possible to implement a NOT filter in Hbase?

2017-01-02 Thread Ted Yu
t doesn't have Name 'Bill' > > NOT (Name='Bill') > > > What I get as result from Hbase with this NotFilter is > > Row 2 > > Surname: Jobs > > > I suppose it's related to the cell "Name: Steve" skipped in the first plac

Re: Is it possible to implement a NOT filter in Hbase?

2017-01-02 Thread Carl M
ct replacement for > > INCLUDE_AND_NEXT_COL. What do you think? If not maybe i should try to > > implement DeMorgan's law but I think it would be harder. > > > > > > Best, > > > > > > De: Ted Yu > > Enviado: jueves, 2

Re: Is it possible to implement a NOT filter in Hbase?

2017-01-02 Thread Ted Yu
method of FilterList, but I got > the same behaviour (the original cell/value missing). > > > Best, > > > > De: Ted Yu > Enviado: viernes, 30 de diciembre de 2016 12:56 p.m. > Para: user@hbase.apache.org > Asunto: Re: Is it possible t

Re: Is it possible to implement a NOT filter in Hbase?

2017-01-02 Thread Carl M
filterRow() method of FilterList, but I got the same behaviour (the original cell/value missing). Best, De: Ted Yu Enviado: viernes, 30 de diciembre de 2016 12:56 p.m. Para: user@hbase.apache.org Asunto: Re: Is it possible to implement a NOT filter in Hbase? I

Re: Is it possible to implement a NOT filter in Hbase?

2016-12-30 Thread Ted Yu
_ > De: Ted Yu > Enviado: jueves, 29 de diciembre de 2016 06:10 p.m. > Para: user@hbase.apache.org > Asunto: Re: Is it possible to implement a NOT filter in Hbase? > > You can try negating the ReturnCode from filterKeyValue() (at the root of > FilterL

Re: Is it possible to implement a NOT filter in Hbase?

2016-12-30 Thread Carl M
ement DeMorgan's law but I think it would be harder. Best, De: Ted Yu Enviado: jueves, 29 de diciembre de 2016 06:10 p.m. Para: user@hbase.apache.org Asunto: Re: Is it possible to implement a NOT filter in Hbase? You can try negating the ReturnCode from filterKeyV

Re: Is it possible to implement a NOT filter in Hbase?

2016-12-29 Thread Ted Yu
Last line should have read: (a != '123') OR (b != '456') On Thu, Dec 29, 2016 at 1:10 PM, Ted Yu wrote: > You can try negating the ReturnCode from filterKeyValue() (at the root of > FilterList): > > abstract public ReturnCode filterKeyValue(final Cell v) throws > IOException; > > INCLUDE -> S

Re: Is it possible to implement a NOT filter in Hbase?

2016-12-29 Thread Ted Yu
You can try negating the ReturnCode from filterKeyValue() (at the root of FilterList): abstract public ReturnCode filterKeyValue(final Cell v) throws IOException; INCLUDE -> SKIP SKIP -> INCLUDE Alternatively, you can use De Morgan's law to transfer the condition: NOT (a = '123' AND b = '45

Is it possible to implement a NOT filter in Hbase?

2016-12-29 Thread Carl M
Hi guys I'm trying to implement some kind of NOT filter in Hbase, but don't know if possible, I'm playing with FilterIfMissing and FilterList.Operator but without luck. I know how to return rows not having a specific column, but I mean something like returning rows NOT fullfilling a conditio