According to my requirements, I need to get the first version of a specific string in Hbase. Assume the following is Htable:
row_key cf1:c1 timestamp ---------------------------------------- 1 x t1 1 x t2 1 x t3 ...
Suppose I want to get the first version of row (1) according to a timestamp. Firstly, is there any hbase java method for this purpose? Secondly, if there is no such method, can I change the sort order of the timestamp in DESC to retrieve such a cell, getting the latest version of row (1)? What is the problem of making this change to streamline the hbase time reference?
Ali n source share