Class HeaderMappingStrategy
- java.lang.Object
-
- org.apache.camel.component.hbase.mapping.HeaderMappingStrategy
-
- All Implemented Interfaces:
CellMappingStrategy
public class HeaderMappingStrategy extends Object implements CellMappingStrategy
A defaultCellMappingStrategyimplementation. It distinguishes between multiple cell, by reading headers with index suffix. In case of multiple headers:- First header is expected to have no suffix
- Suffixes start from number 2
- Suffixes need to be sequential
-
-
Constructor Summary
Constructors Constructor Description HeaderMappingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyGetResults(org.apache.camel.Message message, HBaseData data)Applies the cells to theExchange.voidapplyScanResults(org.apache.camel.Message message, HBaseData data)Applies the cells to theExchange.HBaseDataresolveModel(org.apache.camel.Message message)Resolves the cells that theExchangerefers to.
-
-
-
Method Detail
-
resolveModel
public HBaseData resolveModel(org.apache.camel.Message message)
Resolves the cells that theExchangerefers to.- Specified by:
resolveModelin interfaceCellMappingStrategy
-
applyGetResults
public void applyGetResults(org.apache.camel.Message message, HBaseData data)Applies the cells to theExchange.- Specified by:
applyGetResultsin interfaceCellMappingStrategy- Parameters:
message- The message that will be applied the Get result.data- The rows that will be applied to the message.
-
applyScanResults
public void applyScanResults(org.apache.camel.Message message, HBaseData data)Applies the cells to theExchange.- Specified by:
applyScanResultsin interfaceCellMappingStrategy
-
-