My bad I should have been using Result.getMap() to get all versions of a cell.
Best regards, Vladimir Rodionov Principal Platform Engineer Carrier IQ, www.carrieriq.com e-mail: [email protected] ________________________________________ From: Vladimir Rodionov Sent: Thursday, January 27, 2011 4:05 PM To: [email protected] Subject: RE: Scan operator ignores setMaxVersions (0.20.6) Integer.MAX_VALUE Best regards, Vladimir Rodionov Principal Platform Engineer Carrier IQ, www.carrieriq.com e-mail: [email protected] ________________________________________ From: Ryan Rawson [[email protected]] Sent: Thursday, January 27, 2011 3:13 PM To: [email protected] Subject: Re: Scan operator ignores setMaxVersions (0.20.6) how many versions is the column family configured for? the maxVersions will never return more than that, so if it is 1 you wont have more than 1. -ryan On Thu, Jan 27, 2011 at 3:08 PM, Vladimir Rodionov <[email protected]> wrote: > > Although this version is not supported but may be somebody can advice how to > get ALL versions of rows from HTable scan? > > This code: > > public Iterator<OtaUploadWritable> getUploadsByProfileId(String > profile, > long start, long end) throws IOException { > > Scan scan = new Scan(getStartKey(profile), getEndKey(profile)); > scan.addColumn(COLFAMILY, COL_REF); > scan.addColumn(COLFAMILY, COL_UPLOAD); > scan.setTimeRange(start, end); > scan.setMaxVersions(); > ResultScanner rs = this.getScanner(scan); > return new ResultScannerIterator(rs); > } > > does not seem work correctly (only last versions of rows get into the result > set) > > Best regards, > Vladimir Rodionov > Principal Platform Engineer > Carrier IQ, www.carrieriq.com > e-mail: [email protected] >
