Class BodyMappingStrategy
- java.lang.Object
-
- org.apache.camel.component.hbase.mapping.BodyMappingStrategy
-
- All Implemented Interfaces:
CellMappingStrategy
public class BodyMappingStrategy extends Object implements CellMappingStrategy
ACellMappingStrategy
implementation. 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 BodyMappingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyGetResults(org.apache.camel.Message message, HBaseData data)
Applies the cells to theExchange
.void
applyScanResults(org.apache.camel.Message message, HBaseData data)
Applies the cells to theExchange
.HBaseData
resolveModel(org.apache.camel.Message message)
Resolves the cells that theExchange
refers to.
-
-
-
Method Detail
-
resolveModel
public HBaseData resolveModel(org.apache.camel.Message message)
Resolves the cells that theExchange
refers to.- Specified by:
resolveModel
in interfaceCellMappingStrategy
-
applyGetResults
public void applyGetResults(org.apache.camel.Message message, HBaseData data)
Applies the cells to theExchange
.- Specified by:
applyGetResults
in 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:
applyScanResults
in interfaceCellMappingStrategy
-
-