Get Operation은 지정된 HBase 행에서 하나 이상의 값을 검색하는 데 사용되는 작업입니다.A Get Operation is an operation that is used to retrieve one or more values from a specified HBase row. 검색하려는 값을 지정하려면 uri의 일부로 지정하거나 메시지 헤더로 지정하면 됩니다.
<route>
<from uri="direct:in"/>
<!-- Set the HBase Row of the Get -->
<setHeader headerName="CamelHBaseRowId">
<el>${in.body.id}</el>
</setHeader>
<to uri="hbase:mytable?operation=CamelHBaseGet&family=myfamily&qualifier=myqualifier&valueType=java.lang.Long"/>
<to uri="log:out"/>
</route>
<route>
<from uri="direct:in"/>
<!-- Set the HBase Row of the Get -->
<setHeader headerName="CamelHBaseRowId">
<el>${in.body.id}</el>
</setHeader>
<to uri="hbase:mytable?operation=CamelHBaseGet&family=myfamily&qualifier=myqualifier&valueType=java.lang.Long"/>
<to uri="log:out"/>
</route>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
위의 예에서 get 작업의 결과는 CamelHBaseValue라는 이름의 헤더로 저장됩니다.