OK, thank you. BTW, how about Point 3 and Point 4? do you think they are problems or not?
Thanks 2014-03-14 22:54 GMT+08:00 Claus Ibsen <claus.ib...@gmail.com>: > Ad 1) > You can see the names in these classes > > > https://github.com/apache/camel/blob/master/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/HBaseConstants.java > > https://github.com/apache/camel/blob/master/components/camel-hbase/src/main/java/org/apache/camel/component/hbase/HbaseAttribute.java > > On Fri, Mar 14, 2014 at 9:51 AM, liugang594 Liu <clevers...@gmail.com> > wrote: > > Hi All: > > > > I'm tring camel-hbase component, and I did follow the guide page > > http://camel.apache.org/hbase.html . I have some questions here: > > > > 1. Header Mapping Options > > for example, the 'rowId' options, the name should be 'CamelHBaseRowId' > > ,right (same for others)? > > > > 2. Examples > > it says we can specify multiple headers to put multiple values at once, > the > > sample as below: > > <route> > > <from uri="direct:in"/> > > <!-- Set the HBase Row 1st column --> > > <setHeader headerName="CamelHBaseRowId"> > > <el>${in.body.id}</el> > > </setHeader> > > <!-- Set the HBase Row 2nd column --> > > <setHeader headerName="CamelHBaseRowId"> > > <el>${in.body.id}</el> > > </setHeader> > > <!-- Set the HBase Value for 1st column --> > > <setHeader headerName="CamelHBaseValue"> > > <el>${in.body.value}</el> > > </setHeader> > > <!-- Set the HBase Value for 2nd column --> > > <setHeader headerName="CamelHBaseValue2"> > > <el>${in.body.othervalue}</el> > > </setHeader> > > <to > uri="hbase:mytable?opertaion=CamelHBasePut&family=myfamily& > > qualifier=myqualifier&family2=myfamily&qualifier2=myqualifier2"/> > > </route> > > > > I don't understand how we can do that in camel, because the previous > value > > will be overwrote if same header name comes. right? > > > > 3. Remove option > > I tried camel-hbase on consumer side, all scanned rows will be removed if > > we didn't specify option remove=false, however this option doesn't > describe > > on the page > > > > 4. Family and Qualifier options > > On consumer part, it is said we can also use uri option and header option > > (I'm not sure how to use header option in this case). I tried to specify > > family and qualifier options, however, the returned value will always be > > null. I'm not sure they are forbidden or it's a bug. I created a bug and > > add details for it: https://issues.apache.org/jira/browse/CAMEL-7296 > > > > I appreciate to get some answers about these questions. Thanks. > > > > -- > > Best Regards > > GangLiu > > Mail: clevers...@gmail.com > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > Make your Camel applications look hawt, try: http://hawt.io > -- Best Regards GangLiu Mail: clevers...@gmail.com