Get last version of all keys in hbase
I am trying the following:
Scan scan = new Scan(); scan.setMaxVersion(1);
And after I iterate on the result I don't get the last version of the keys.
If I set the maxVersion to 1, should it return the last version, right?
Please use the below function which will get the latest of version of each column
Scan scan = new Scan(); scan.readVersions(1);