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?

Answers


Please use the below function which will get the latest of version of each column

Scan scan = new Scan();
scan.readVersions(1);

https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Scan.html#readVersions-int-


Need Your Help

Exception when applying ClaimsPrincipalPermissionAttribute at both class level and method level

c# .net wif claims-based-identity code-access-security

I have a class which is decorated with a ClaimsPrincipalPermissionsAttribute. The class has a method that is also decorated with a ClaimsPrincipalPermissionsAttribute. What I expected was:

AS3 : XML Into Array Login Form Details

xml arrays forms actionscript-3 login

I want to make a login form in as3. I have two input text fields (username, password) and one submit button on stage. When user inputs those fields and hit submit I want the flash to load the all