Re: Behavior of Filter.transform() in FilterList?

2013-07-01 Thread Christophe Taton
x27;t introduce other unwanted side-effects. C. On Mon, Jul 1, 2013 at 7:54 PM, Ted Yu wrote: > Christophe: > Looks like you have clear idea of what to do. > > If you can show us in the form of patch, that would be nice. > > Cheers > > On Mon, Jul 1, 2013 at 7:17 PM, Christophe

Re: Behavior of Filter.transform() in FilterList?

2013-07-01 Thread Christophe Taton
en needed. > > > -- Lars > > > > ________ > From: Christophe Taton > To: user@hbase.apache.org; lars hofhansl > Sent: Monday, July 1, 2013 10:27 AM > Subject: Re: Behavior of Filter.transform() in FilterList? > > > > On Mon, Jul 1, 2013 at 4:14 AM, lars hofhansl

Re: Behavior of Filter.transform() in FilterList?

2013-07-01 Thread Christophe Taton
#x27;t mention transform() at all. Would it make sense to apply transform() only if the return code for filterKeyValue() includes the KeyValue? C. -- Lars > > - Original Message - > From: Christophe Taton > To: user@hbase.apache.org > Cc: > Sent: Sunday, June 30, 2

Re: Behavior of Filter.transform() in FilterList?

2013-06-30 Thread Christophe Taton
ails I missed? Thanks! C. On Mon, Jul 1, 2013 at 1:10 PM, Christophe Taton wrote: > > > Hi, > > > > From > > > > > https://github.com/apache/hbase/blob/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java#L183 > > , > > it ap

Behavior of Filter.transform() in FilterList?

2013-06-30 Thread Christophe Taton
Hi, From https://github.com/apache/hbase/blob/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java#L183 , it appears that Filter.transform() is invoked unconditionally on all filters in a FilterList hierarchy. This is quite confusing, especially since I may construct a f

Re: Writing unit tests against HBase

2013-06-24 Thread Christophe Taton
Hey Adam, Here is how to use fake-hbase from Java: final Configuration conf = new Configuration(); final FakeHBase fakeHBase = new FakeHBase(); final HBaseAdmin admin = fakeHBase.getAdminFactory().create(conf); final HTableDescriptor desc = new HTableDescriptor("table"); desc.addFamily(new HC

Re: Writing unit tests against HBase

2013-06-20 Thread Christophe Taton
Hey Varun, On Thu, Jun 20, 2013 at 11:56 AM, Varun Sharma wrote: > Now that I think about it - this may not be as simple. The client could mix > its calls with Filters etc. which the fake in memory HTable would need to > support. It seems the best route would be to run the end to end test like >

Re: Documentation for append

2013-05-08 Thread Christophe Taton
st version. > > -Anoop- > > > > On Wed, May 8, 2013 at 5:37 PM, Christophe Taton > wrote: > > > Hi, > > > > I'm trying to understand the append operation introduced in 0.94. > > Is there a documentation or a specification somewhere? > > &

Documentation for append

2013-05-08 Thread Christophe Taton
Hi, I'm trying to understand the append operation introduced in 0.94. Is there a documentation or a specification somewhere? The javadoc for Append does not provide any detail. The HBase book doesn't mention this operation. I found some fragmented info in several JIRA issues, but nothing reliable

Re: Interactions between max versions and filters

2013-04-09 Thread Christophe Taton
6 but not for the cdh versions... > > > >> > > > >> On Fri, Apr 5, 2013 at 3:28 PM, lars hofhansl > > wrote: > > > >> > > > >> > Normally Filters are evaluated before the version counting. There > > was > > > >> some >

Re: Interactions between max versions and filters

2013-04-05 Thread Christophe Taton
On Fri, Apr 5, 2013 at 3:05 PM, Stack wrote: > On Fri, Apr 5, 2013 at 11:19 AM, Christophe Taton >wrote: > > > Is there an explicit specification of the behavior of max versions (set > in > > a get/scan) when combined with filters? > > From my experiments (with 0.

Interactions between max versions and filters

2013-04-05 Thread Christophe Taton
Hi, Is there an explicit specification of the behavior of max versions (set in a get/scan) when combined with filters? >From my experiments (with 0.92 CDH4.1.2), the max versions is applied in a way that is neither pre-filtering nor post-filtering. In particular, I am currently playing with the Co