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:


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

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 - 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 the Exchange.

Specified by:
applyScanResults in interface CellMappingStrategy


Apache CAMEL