hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Rodionov <vrodio...@carrieriq.com>
Subject Scan operator ignores setMaxVersions (0.20.6)
Date Thu, 27 Jan 2011 23:08:56 GMT

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);        
                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: vrodionov@carrieriq.com

View raw message