hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Rawson <ryano...@gmail.com>
Subject Re: Scan operator ignores setMaxVersions (0.20.6)
Date Thu, 27 Jan 2011 23:13:49 GMT
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
<vrodionov@carrieriq.com> 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: vrodionov@carrieriq.com
>

Mime
View raw message