Author: buildbot
Date: Thu Jun 26 22:18:00 2014
New Revision: 914021
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/hbase.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/hbase.html
==============================================================================
--- websites/production/camel/content/hbase.html (original)
+++ websites/production/camel/content/hbase.html Thu Jun 26 22:18:00 2014
@@ -117,7 +117,7 @@
<setHeader headerName="CamelHBaseValue">
<el>${in.body.value}</el>
</setHeader>
- <to
uri="hbase:mytable?opertaion=CamelHBasePut&amp;family=myfamily&amp;qualifier=myqualifier"/>
+ <to
uri="hbase:mytable?operation=CamelHBasePut&amp;family=myfamily&amp;qualifier=myqualifier"/>
</route>
]]></script>
</div></div><p>The route above assumes that the message body contains an
object that has an id and value property and will store the content of value in
the HBase column myfamily:myqualifier in the row specified by id. If we needed
to specify more than one column/value pairs we could just specify additional
column mappings. Notice that you must use numbers from the 2nd header onwards,
eg RowId2, RowId3, RowId4, etc. Only the 1st header does not have the number
1.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
@@ -139,7 +139,7 @@
<setHeader headerName="CamelHBaseValue2">
<el>${in.body.othervalue}</el>
</setHeader>
- <to
uri="hbase:mytable?opertaion=CamelHBasePut&amp;family=myfamily&amp;qualifier=myqualifier&amp;family2=myfamily&amp;qualifier2=myqualifier2"/>
+ <to
uri="hbase:mytable?operation=CamelHBasePut&amp;family=myfamily&amp;qualifier=myqualifier&amp;family2=myfamily&amp;qualifier2=myqualifier2"/>
</route>
]]></script>
</div></div><p>It is important to remember that you can use uri options,
message headers or a combination of both. It is recommended to specify
constants as part of the uri and dynamic values as headers. If something is
defined both as header and as part of the uri, the header will be used.</p><h4
id="hbase-GetOperations.">Get Operations.</h4><p>A Get Operation is an
operation that is used to retrieve one or more values from a specified HBase
row. To specify what are the values that you want to retrieve you can just
specify them as part of the uri or as message headers.</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
@@ -149,7 +149,7 @@
<setHeader headerName="CamelHBaseRowId">
<el>${in.body.id}</el>
</setHeader>
- <to
uri="hbase:mytable?opertaion=CamelHBaseGet&amp;family=myfamily&amp;qualifier=myqualifier&amp;valueType=java.lang.Long"/>
+ <to
uri="hbase:mytable?operation=CamelHBaseGet&amp;family=myfamily&amp;qualifier=myqualifier&amp;valueType=java.lang.Long"/>
<to uri="log:out"/>
</route>
]]></script>
@@ -160,13 +160,13 @@
<setHeader headerName="CamelHBaseRowId">
<el>${in.body.id}</el>
</setHeader>
- <to
uri="hbase:mytable?opertaion=CamelHBaseDelete"/>
+ <to
uri="hbase:mytable?operation=CamelHBaseDelete"/>
</route>
]]></script>
</div></div><h4 id="hbase-ScanOperations.">Scan Operations.</h4><p>A scan
operation is the equivalent of a query in HBase. You can use the scan operation
to retrieve multiple rows. To specify what columns should be part of the result
and also specify how the values will be converted to objects you can use either
uri options or headers.</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[ <route>
<from uri="direct:in"/>
- <to
uri="hbase:mytable?opertaion=CamelHBaseScan&amp;family=myfamily&amp;qualifier=myqualifier&amp;valueType=java.lang.Long&amp;rowType=java.lang.String"/>
+ <to
uri="hbase:mytable?operation=CamelHBaseScan&amp;family=myfamily&amp;qualifier=myqualifier&amp;valueType=java.lang.Long&amp;rowType=java.lang.String"/>
<to uri="log:out"/>
</route>
]]></script>
@@ -199,7 +199,7 @@
<setHeader headerName="CamelHBaseQualifier3">
<constant>country</constant>
</setHeader>
- <to
uri="hbase:mytable?opertaion=CamelHBaseScan&amp;filters=#myFilterList"/>
+ <to
uri="hbase:mytable?operation=CamelHBaseScan&amp;filters=#myFilterList"/>
</route>
<bean id="myFilters"
class="java.util.ArrayList">