HBase update operation

后端 未结 2 2026
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 23:57
  1. I am new to HBase, I find in HBase client API, update operation is not supported? Is that correct?
  2. If so, what is the suggested best practices to update the value
2条回答
  •  北恋
    北恋 (楼主)
    2021-02-06 00:24

    I think what you want to do is perform a Put operation. You can look at the HBase's Put API client docs as well as this blog post titled: Java Example Code using HBase Data Model Operations for some examples, and descriptions of the operations.

    To update a row, you will have to issue a sequence of "Delete" and "Put", in a single Mutation, so they are seen as an update externally.

    See the Class RowMutations documentation on how to build such a call.

提交回复
热议问题