[
https://issues.apache.org/jira/browse/CAMEL-13700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-13700:
--------------------------------
Estimated Complexity: Novice (was: Unknown)
> createRowModel failed to set cell's valueType
> ---------------------------------------------
>
> Key: CAMEL-13700
> URL: https://issues.apache.org/jira/browse/CAMEL-13700
> Project: Camel
> Issue Type: Bug
> Components: camel-hbase
> Affects Versions: 2.24.0
> Reporter: kevin.cao
> Priority: Major
>
> When
> {code:java}
> org.apache.camel.component.hbase.HBaseEndpoint#createRowModel
> {code}
> function has been called, following code should check if `valueType`
> parameter has been set, if so, then set cell's valueType.
> {code:java}
> if (parameters.containsKey(HBaseAttribute.HBASE_VALUE_TYPE.asOption(i))) {
> String valueType =
> String.valueOf(parameters.remove(HBaseAttribute.HBASE_VALUE_TYPE.asOption(i)));
> if (valueType != null && !valueType.isEmpty()) {
>
> rowModel.setRowType(getCamelContext().getClassResolver().resolveClass(valueType));
> }
> }
> {code}
> However, the code set rowModel's rowType instead of cellModel's valueType,
> and, IMHO, this is not correct.
>
> My endpoint is configurated as following:
> {code:xml}
> <from
> uri="hbase:table?operation=CamelHBaseScan&row.family=motion&row.qualifier=aver_max_A&row.valueType=java.lang.Integer"
> />
> {code}
> Thanks!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)