Class 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 Detail

      • HeaderMappingStrategy

        public HeaderMappingStrategy()
    • Method Detail

      • 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.