Class HeaderMappingStrategy
java.lang.Object
org.apache.camel.component.hbase.mapping.HeaderMappingStrategy
- All Implemented Interfaces:
CellMappingStrategy
A default
CellMappingStrategy
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
.resolveModel
(org.apache.camel.Message message) Resolves the cells that theExchange
refers to.
-
Constructor Details
-
HeaderMappingStrategy
public HeaderMappingStrategy()
-
-
Method Details
-
resolveModel
Resolves the cells that theExchange
refers to.- Specified by:
resolveModel
in interfaceCellMappingStrategy
-
applyGetResults
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
Applies the cells to theExchange
.- Specified by:
applyScanResults
in interfaceCellMappingStrategy
-