Class BodyMappingStrategy

java.lang.Object
org.apache.camel.component.hbase.mapping.BodyMappingStrategy
All Implemented Interfaces:
CellMappingStrategy

public class BodyMappingStrategy extends Object implements CellMappingStrategy
A 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 Details

    • BodyMappingStrategy

      public BodyMappingStrategy()
  • Method Details

    • 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