143.6. HBase Consumer

Camel HBase Consumer는 지정된 HBase 테이블에서 반복적으로 검사를 수행하고 검사 결과를 메시지의 일부로 반환합니다. 헤더 매핑(기본값) 또는 본문 매핑을 지정할 수 있습니다. 나중에 메시지 본문의 일부로 org.apache.camel.component.hbase.model.HBaseData를 추가합니다.

hbase://table[?options]

반환할 열과 해당 유형을 uri 옵션의 일부로 지정할 수 있습니다.You can specify the columns that you want to be return and their types as part of the uri options:

hbase:mutable?family=name&qualifer=first&valueType=java.lang.String&family=address&qualifer=number&valueType2=java.lang.Integer&rowType=java.lang.Long

위의 예제에서는 지정된 필드로 구성된 모델 오브젝트를 생성하고 검사 결과는 model 오브젝트를 값으로 채웁니다. 마지막으로 매핑 전략은 이 모델을 camel 메시지에 매핑하는 데 사용됩니다.