Hi there-
Question: how does one obtain older versions of values from Result?
As I understand it, the following Scan instance should return the last 5
versions of values for a table, provided that the table is versioned.
Scan scan = new Scan();
scan.setMaxVersions(5);
>From the Javadoc, it looks like what I want is in here (from Result)....
getMap
public
NavigableMap<http://java.sun.com/javase/6/docs/api/java/util/NavigableMap.html?is-external=true><byte[],NavigableMap<http://java.sun.com/javase/6/docs/api/java/util/NavigableMap.html?is-external=true><byte[],NavigableMap<http://java.sun.com/javase/6/docs/api/java/util/NavigableMap.html?is-external=true><Long<http://java.sun.com/javase/6/docs/api/java/lang/Long.html?is-external=true>,byte[]>>>
getMap()
Map of families to all versions of its qualifiers and values.
... but there is a fair amount of gymnastics involved to get the data.
Suggestion: can an example of iterating over this map (and contained maps) be
added to the Javadoc? Versioning is a powerful feature of HBase but using it
isn't obvious in result processing.
Thanks!
Doug Meil
Director of Engineering
[email protected]