org.apache.camel.component.hbase.mapping
Class HeaderMappingStrategy

java.lang.Object
  extended by org.apache.camel.component.hbase.mapping.HeaderMappingStrategy
All Implemented Interfaces:
CellMappingStrategy

public class HeaderMappingStrategy
extends Object
implements 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
HeaderMappingStrategy()
           
 
Method Summary
 void applyGetResults(org.apache.camel.Message message, HBaseData data)
          Applies the cells to the Exchange.
 void applyScanResults(org.apache.camel.Message message, HBaseData data)
          Applies the cells to the Exchange.
 HBaseData resolveModel(org.apache.camel.Message message)
          Resolves the cells that the Exchange refers to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderMappingStrategy

public HeaderMappingStrategy()
Method Detail

resolveModel

public HBaseData resolveModel(org.apache.camel.Message message)
Resolves the cells that the Exchange refers to.

Specified by:
resolveModel in interface CellMappingStrategy
Parameters:
message -
Returns:

applyGetResults

public void applyGetResults(org.apache.camel.Message message,
                            HBaseData data)
Applies the cells to the Exchange.

Specified by:
applyGetResults in interface CellMappingStrategy
Parameters:
message -
hRows -

applyScanResults

public void applyScanResults(org.apache.camel.Message message,
                             HBaseData data)
Applies the cells to the Exchange.

Specified by:
applyScanResults in interface CellMappingStrategy
Parameters:
message -


Apache CAMEL